python310Packages.pikepdf: 5.2.0 -> 5.3.1

https://github.com/pikepdf/pikepdf/blob/v5.3.1/docs/releasenotes/version5.rst
This commit is contained in:
Robert Schütz 2022-07-06 10:05:30 +00:00 committed by Jonathan Ringer
parent d89c89c063
commit 3aa678fde2
2 changed files with 11 additions and 11 deletions

View file

@ -24,7 +24,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pikepdf"; pname = "pikepdf";
version = "5.2.0"; version = "5.3.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -39,7 +39,7 @@ buildPythonPackage rec {
postFetch = '' postFetch = ''
rm "$out/.git_archival.txt" rm "$out/.git_archival.txt"
''; '';
hash = "sha256-el7gnqnk8Mp5rpn8Q3WKOTAuB11j4ByCq2Gf60LBBEI="; hash = "sha256-QYSI0oWuDw19EF8pwh3t1+VOY3Xe/AZxL1uARufg/nE=";
}; };
patches = [ patches = [

View file

@ -1,8 +1,8 @@
diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py
index 87e99fe..253a701 100644 index 2a170c6..5ee3ba1 100644
--- a/src/pikepdf/_methods.py --- a/src/pikepdf/_methods.py
+++ b/src/pikepdf/_methods.py +++ b/src/pikepdf/_methods.py
@@ -204,7 +204,7 @@ def _mudraw(buffer, fmt) -> bytes: @@ -80,7 +80,7 @@ def _mudraw(buffer, fmt) -> bytes:
tmp_in.flush() tmp_in.flush()
proc = run( proc = run(
@ -12,10 +12,10 @@ index 87e99fe..253a701 100644
check=True, check=True,
) )
diff --git a/src/pikepdf/jbig2.py b/src/pikepdf/jbig2.py diff --git a/src/pikepdf/jbig2.py b/src/pikepdf/jbig2.py
index 04c762d..924727c 100644 index be390a1..3818ec3 100644
--- a/src/pikepdf/jbig2.py --- a/src/pikepdf/jbig2.py
+++ b/src/pikepdf/jbig2.py +++ b/src/pikepdf/jbig2.py
@@ -26,7 +26,7 @@ def extract_jbig2( @@ -31,7 +31,7 @@ def extract_jbig2(
output_path = Path(tmpdir) / "outfile" output_path = Path(tmpdir) / "outfile"
args = [ args = [
@ -24,7 +24,7 @@ index 04c762d..924727c 100644
"--embedded", "--embedded",
"--format", "--format",
"png", "png",
@@ -59,7 +59,7 @@ def extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes: @@ -64,7 +64,7 @@ def _extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes:
output_path = Path(tmpdir) / "outfile" output_path = Path(tmpdir) / "outfile"
args = [ args = [
@ -33,12 +33,12 @@ index 04c762d..924727c 100644
"--embedded", "--embedded",
"--format", "--format",
"png", "png",
@@ -84,7 +84,7 @@ def extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes: @@ -100,7 +100,7 @@ def extract_jbig2_bytes(
def jbig2dec_available() -> bool: def _check_jbig2dec_available() -> None: # pragma: no cover
try: try:
- proc = run(['jbig2dec', '--version'], stdout=PIPE, check=True, encoding='ascii') - proc = run(['jbig2dec', '--version'], stdout=PIPE, check=True, encoding='ascii')
+ proc = run(['@jbig2dec@', '--version'], stdout=PIPE, check=True, encoding='ascii') + proc = run(['@jbig2dec@', '--version'], stdout=PIPE, check=True, encoding='ascii')
except (CalledProcessError, FileNotFoundError): except (CalledProcessError, FileNotFoundError) as e:
return False raise DependencyError("jbig2dec - not installed or not found") from e
else: else: