ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pikepdf / paths.patch
blob43e472f5598acd47c05ecd238439621b2f33c143
1 diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py
2 index 2a170c6..5ee3ba1 100644
3 --- a/src/pikepdf/_methods.py
4 +++ b/src/pikepdf/_methods.py
5 @@ -80,7 +80,7 @@ def _mudraw(buffer, fmt) -> bytes:
6 tmp_in.flush()
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,
14 diff --git a/src/pikepdf/jbig2.py b/src/pikepdf/jbig2.py
15 index 28c596b..aff3565 100644
16 --- a/src/pikepdf/jbig2.py
17 +++ b/src/pikepdf/jbig2.py
18 @@ -28,7 +28,7 @@ def _extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes:
19 output_path = Path(tmpdir) / "outfile"
21 args = [
22 - "jbig2dec",
23 + "@jbig2dec@",
24 "--embedded",
25 "--format",
26 "png",
27 @@ -88,7 +88,7 @@ class JBIG2Decoder(JBIG2DecoderInterface):
28 def _version(self) -> Version:
29 try:
30 proc = run(
31 - ['jbig2dec', '--version'], stdout=PIPE, check=True, encoding='ascii'
32 + ['@jbig2dec@', '--version'], stdout=PIPE, check=True, encoding='ascii'
34 except (CalledProcessError, FileNotFoundError) as e:
35 raise DependencyError("jbig2dec - not installed or not found") from e