about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ocrmypdf/use-pillow-heif.patch
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2024-04-24 00:13:13 +0000
committerGitHub <noreply@github.com>2024-04-24 00:13:13 +0000
commit466ddc4b5f917da844a3ede0133e0430070c2ba6 (patch)
tree6099073040af1c5db1d7cf46682c4979d07ccb86 /pkgs/development/python-modules/ocrmypdf/use-pillow-heif.patch
parent69d32db54427d937384cfcede967af2bf30d9535 (diff)
parent759b885493f1254e8eaeae303f315d5186025d74 (diff)
Merge master into haskell-updates
Diffstat (limited to 'pkgs/development/python-modules/ocrmypdf/use-pillow-heif.patch')
-rw-r--r--pkgs/development/python-modules/ocrmypdf/use-pillow-heif.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ocrmypdf/use-pillow-heif.patch b/pkgs/development/python-modules/ocrmypdf/use-pillow-heif.patch
new file mode 100644
index 0000000000000..fc464cf71b665
--- /dev/null
+++ b/pkgs/development/python-modules/ocrmypdf/use-pillow-heif.patch
@@ -0,0 +1,26 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index d045458f..efa9161d 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -16,7 +16,7 @@ dependencies = [
+   "img2pdf>=0.5",
+   "packaging>=20",
+   "pdfminer.six>=20220319",
+-  "pi-heif",                # Heif image format - maintainers: if this is removed, it will NOT break
++  "pillow-heif",                # Heif image format - maintainers: if this is removed, it will NOT break
+   "pikepdf>=8.10.1",
+   "Pillow>=10.0.1",
+   "pluggy>=1",
+diff --git a/src/ocrmypdf/_pipeline.py b/src/ocrmypdf/_pipeline.py
+index 043a78a0..522197b1 100644
+--- a/src/ocrmypdf/_pipeline.py
++++ b/src/ocrmypdf/_pipeline.py
+@@ -42,7 +42,7 @@ from ocrmypdf.pdfinfo import Colorspace, Encoding, PageInfo, PdfInfo
+ from ocrmypdf.pluginspec import OrientationConfidence
+ 
+ try:
+-    from pi_heif import register_heif_opener
++    from pillow_heif import register_heif_opener
+ except ImportError:
+ 
+     def register_heif_opener():