hydra: 0-unstable-2024-11-25 -> 0-unstable-2024-12-05 (#363987)
[NixPkgs.git] / pkgs / development / python-modules / ocrmypdf / use-pillow-heif.patch
blobfc464cf71b665c0a2446d7ca1f9020d6448f7d3b
1 diff --git a/pyproject.toml b/pyproject.toml
2 index d045458f..efa9161d 100644
3 --- a/pyproject.toml
4 +++ b/pyproject.toml
5 @@ -16,7 +16,7 @@ dependencies = [
6 "img2pdf>=0.5",
7 "packaging>=20",
8 "pdfminer.six>=20220319",
9 - "pi-heif", # Heif image format - maintainers: if this is removed, it will NOT break
10 + "pillow-heif", # Heif image format - maintainers: if this is removed, it will NOT break
11 "pikepdf>=8.10.1",
12 "Pillow>=10.0.1",
13 "pluggy>=1",
14 diff --git a/src/ocrmypdf/_pipeline.py b/src/ocrmypdf/_pipeline.py
15 index 043a78a0..522197b1 100644
16 --- a/src/ocrmypdf/_pipeline.py
17 +++ b/src/ocrmypdf/_pipeline.py
18 @@ -42,7 +42,7 @@ from ocrmypdf.pdfinfo import Colorspace, Encoding, PageInfo, PdfInfo
19 from ocrmypdf.pluginspec import OrientationConfidence
21 try:
22 - from pi_heif import register_heif_opener
23 + from pillow_heif import register_heif_opener
24 except ImportError:
26 def register_heif_opener():