nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 44 lines 1.5 kB view raw
1diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py 2index 87e99fe..253a701 100644 3--- a/src/pikepdf/_methods.py 4+++ b/src/pikepdf/_methods.py 5@@ -204,7 +204,7 @@ def _mudraw(buffer, fmt) -> bytes: 6 tmp_in.flush() 7 8 proc = run( 9- ['mudraw', '-F', fmt, '-o', '-', tmp_in.name], 10+ ['@mudraw@', '-F', fmt, '-o', '-', tmp_in.name], 11 capture_output=True, 12 check=True, 13 ) 14diff --git a/src/pikepdf/jbig2.py b/src/pikepdf/jbig2.py 15index 04c762d..924727c 100644 16--- a/src/pikepdf/jbig2.py 17+++ b/src/pikepdf/jbig2.py 18@@ -26,7 +26,7 @@ def extract_jbig2( 19 output_path = Path(tmpdir) / "outfile" 20 21 args = [ 22- "jbig2dec", 23+ "@jbig2dec@", 24 "--embedded", 25 "--format", 26 "png", 27@@ -59,7 +59,7 @@ def extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes: 28 output_path = Path(tmpdir) / "outfile" 29 30 args = [ 31- "jbig2dec", 32+ "@jbig2dec@", 33 "--embedded", 34 "--format", 35 "png", 36@@ -84,7 +84,7 @@ def extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes: 37 38 def jbig2dec_available() -> bool: 39 try: 40- proc = run(['jbig2dec', '--version'], stdout=PIPE, check=True, encoding='ascii') 41+ proc = run(['@jbig2dec@', '--version'], stdout=PIPE, check=True, encoding='ascii') 42 except (CalledProcessError, FileNotFoundError): 43 return False 44 else: