Loading pkgs/development/python-modules/pikepdf/default.nix +6 −4 Original line number Diff line number Diff line Loading @@ -5,9 +5,10 @@ , hypothesis , pythonOlder , jbig2dec , deprecation , deprecated , lxml , mupdf , numpy , packaging , pillow , psutil Loading @@ -24,7 +25,7 @@ buildPythonPackage rec { pname = "pikepdf"; version = "8.4.0"; version = "8.7.1"; format = "pyproject"; disabled = pythonOlder "3.8"; Loading @@ -39,7 +40,7 @@ buildPythonPackage rec { postFetch = '' rm "$out/.git_archival.txt" ''; hash = "sha256-48tb5bhmBdKVjMld07303qIi5C16yaf+5TpRPVC6EQk="; hash = "sha256-uAx3Egz/woJINpruDaZOyuAlbIZUMv93VNaFHLmUjCY="; }; patches = [ Loading Loading @@ -68,6 +69,7 @@ buildPythonPackage rec { nativeCheckInputs = [ attrs hypothesis numpy pytest-xdist psutil pytestCheckHook Loading @@ -76,7 +78,7 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ deprecation deprecated lxml packaging pillow Loading pkgs/development/python-modules/pikepdf/paths.patch +14 −14 Original line number Diff line number Diff line diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py index 2a170c6..5ee3ba1 100644 index d27c660..6796984 100644 --- a/src/pikepdf/_methods.py +++ b/src/pikepdf/_methods.py @@ -80,7 +80,7 @@ def _mudraw(buffer, fmt) -> bytes: @@ -72,7 +72,7 @@ def _mudraw(buffer, fmt) -> bytes: tmp_in.flush() proc = run( Loading @@ -12,10 +12,10 @@ index 2a170c6..5ee3ba1 100644 check=True, ) diff --git a/src/pikepdf/jbig2.py b/src/pikepdf/jbig2.py index 28c596b..aff3565 100644 index f89b4f9..f187ebd 100644 --- a/src/pikepdf/jbig2.py +++ b/src/pikepdf/jbig2.py @@ -28,7 +28,7 @@ def _extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes: @@ -63,7 +63,7 @@ class JBIG2Decoder(JBIG2DecoderInterface): output_path = Path(tmpdir) / "outfile" args = [ Loading @@ -24,10 +24,10 @@ index 28c596b..aff3565 100644 "--embedded", "--format", "png", @@ -88,7 +88,7 @@ class JBIG2Decoder(JBIG2DecoderInterface): @@ -90,7 +90,7 @@ class JBIG2Decoder(JBIG2DecoderInterface): def _version(self) -> Version: try: proc = run( proc = self._run( - ['jbig2dec', '--version'], stdout=PIPE, check=True, encoding='ascii' + ['@jbig2dec@', '--version'], stdout=PIPE, check=True, encoding='ascii' ) Loading Loading
pkgs/development/python-modules/pikepdf/default.nix +6 −4 Original line number Diff line number Diff line Loading @@ -5,9 +5,10 @@ , hypothesis , pythonOlder , jbig2dec , deprecation , deprecated , lxml , mupdf , numpy , packaging , pillow , psutil Loading @@ -24,7 +25,7 @@ buildPythonPackage rec { pname = "pikepdf"; version = "8.4.0"; version = "8.7.1"; format = "pyproject"; disabled = pythonOlder "3.8"; Loading @@ -39,7 +40,7 @@ buildPythonPackage rec { postFetch = '' rm "$out/.git_archival.txt" ''; hash = "sha256-48tb5bhmBdKVjMld07303qIi5C16yaf+5TpRPVC6EQk="; hash = "sha256-uAx3Egz/woJINpruDaZOyuAlbIZUMv93VNaFHLmUjCY="; }; patches = [ Loading Loading @@ -68,6 +69,7 @@ buildPythonPackage rec { nativeCheckInputs = [ attrs hypothesis numpy pytest-xdist psutil pytestCheckHook Loading @@ -76,7 +78,7 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ deprecation deprecated lxml packaging pillow Loading
pkgs/development/python-modules/pikepdf/paths.patch +14 −14 Original line number Diff line number Diff line diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py index 2a170c6..5ee3ba1 100644 index d27c660..6796984 100644 --- a/src/pikepdf/_methods.py +++ b/src/pikepdf/_methods.py @@ -80,7 +80,7 @@ def _mudraw(buffer, fmt) -> bytes: @@ -72,7 +72,7 @@ def _mudraw(buffer, fmt) -> bytes: tmp_in.flush() proc = run( Loading @@ -12,10 +12,10 @@ index 2a170c6..5ee3ba1 100644 check=True, ) diff --git a/src/pikepdf/jbig2.py b/src/pikepdf/jbig2.py index 28c596b..aff3565 100644 index f89b4f9..f187ebd 100644 --- a/src/pikepdf/jbig2.py +++ b/src/pikepdf/jbig2.py @@ -28,7 +28,7 @@ def _extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes: @@ -63,7 +63,7 @@ class JBIG2Decoder(JBIG2DecoderInterface): output_path = Path(tmpdir) / "outfile" args = [ Loading @@ -24,10 +24,10 @@ index 28c596b..aff3565 100644 "--embedded", "--format", "png", @@ -88,7 +88,7 @@ class JBIG2Decoder(JBIG2DecoderInterface): @@ -90,7 +90,7 @@ class JBIG2Decoder(JBIG2DecoderInterface): def _version(self) -> Version: try: proc = run( proc = self._run( - ['jbig2dec', '--version'], stdout=PIPE, check=True, encoding='ascii' + ['@jbig2dec@', '--version'], stdout=PIPE, check=True, encoding='ascii' ) Loading