home-assistant: 2025.1.1 -> 2025.1.2 (#372513)
[NixPkgs.git] / pkgs / development / python-modules / pikepdf / paths.patch
blob83cebed5cc2341bc6842c07df347aa44bd09e578
1 diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py
2 index da40043f..4f566f01 100644
3 --- a/src/pikepdf/_methods.py
4 +++ b/src/pikepdf/_methods.py
5 @@ -74,7 +74,7 @@ def _mudraw(buffer, fmt) -> bytes:
6 tmp_in.flush()
8 proc = run(
9 - ['mutool', 'draw', '-F', fmt, '-o', '-', tmp_in.name],
10 + ['@mutool@', 'draw', '-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 901f3b6f..45551820 100644
16 --- a/src/pikepdf/jbig2.py
17 +++ b/src/pikepdf/jbig2.py
18 @@ -72,7 +72,7 @@ class JBIG2Decoder(JBIG2DecoderInterface):
19 output_path = Path(tmpdir) / "outfile"
21 args = [
22 - "jbig2dec",
23 + "@jbig2dec@",
24 "--embedded",
25 "--format",
26 "png",
27 @@ -101,7 +101,7 @@ class JBIG2Decoder(JBIG2DecoderInterface):
28 def _version(self) -> Version:
29 try:
30 proc = self._run(
31 - ['jbig2dec', '--version'],
32 + ['@jbig2dec@', '--version'],
33 stdout=PIPE,
34 check=True,
35 encoding='ascii',