depot/third_party/nixpkgs/pkgs/development/python-modules/pikepdf/paths.patch
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

35 lines
1.3 KiB
Diff

diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py
index d27c660..6796984 100644
--- a/src/pikepdf/_methods.py
+++ b/src/pikepdf/_methods.py
@@ -72,7 +72,7 @@ def _mudraw(buffer, fmt) -> bytes:
tmp_in.flush()
proc = run(
- ['mudraw', '-F', fmt, '-o', '-', tmp_in.name],
+ ['@mudraw@', '-F', fmt, '-o', '-', tmp_in.name],
capture_output=True,
check=True,
)
diff --git a/src/pikepdf/jbig2.py b/src/pikepdf/jbig2.py
index f89b4f9..f187ebd 100644
--- a/src/pikepdf/jbig2.py
+++ b/src/pikepdf/jbig2.py
@@ -63,7 +63,7 @@ class JBIG2Decoder(JBIG2DecoderInterface):
output_path = Path(tmpdir) / "outfile"
args = [
- "jbig2dec",
+ "@jbig2dec@",
"--embedded",
"--format",
"png",
@@ -90,7 +90,7 @@ class JBIG2Decoder(JBIG2DecoderInterface):
def _version(self) -> Version:
try:
proc = self._run(
- ['jbig2dec', '--version'], stdout=PIPE, check=True, encoding='ascii'
+ ['@jbig2dec@', '--version'], stdout=PIPE, check=True, encoding='ascii'
)
except (CalledProcessError, FileNotFoundError) as e:
raise DependencyError("jbig2dec - not installed or not found") from e