-
-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #305616 from dotlambda/python3Packages.ocrmypdf
python311Packages.ocrmypdf: 16.1.2 -> 16.2.0
- Loading branch information
Showing
3 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
pkgs/development/python-modules/ocrmypdf/use-pillow-heif.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters