python3Packages.ocrmypdf: 16.10.2 -> 16.10.4 (#425670)
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ocrmypdf";
|
||||
version = "16.10.2";
|
||||
version = "16.10.4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@@ -41,7 +41,7 @@ buildPythonPackage rec {
|
||||
postFetch = ''
|
||||
rm "$out/.git_archival.txt"
|
||||
'';
|
||||
hash = "sha256-kEPVufS8wpoGi/A4Eh1u9gLVIEdJmoPDmAiY38DYDv4=";
|
||||
hash = "sha256-uHC1mIrWlvpL6SOFZQHWFlha7qSM3jhz2C/CH2cn2K0=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -53,8 +53,6 @@ buildPythonPackage rec {
|
||||
tesseract = lib.getExe tesseract;
|
||||
unpaper = lib.getExe unpaper;
|
||||
})
|
||||
# Fix crashing in tests on Python 3.13.4
|
||||
./multiprocessing.patch
|
||||
];
|
||||
|
||||
build-system = [
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
diff --git a/src/ocrmypdf/__main__.py b/src/ocrmypdf/__main__.py
|
||||
index cec02d13..f554ab73 100755
|
||||
--- a/src/ocrmypdf/__main__.py
|
||||
+++ b/src/ocrmypdf/__main__.py
|
||||
@@ -77,7 +77,7 @@ def run(args=None):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
- multiprocessing.freeze_support()
|
||||
+ # multiprocessing.freeze_support()
|
||||
if os.name == 'posix':
|
||||
multiprocessing.set_start_method('forkserver')
|
||||
sys.exit(run())
|
||||
@@ -1,14 +1,14 @@
|
||||
diff --git a/pyproject.toml b/pyproject.toml
|
||||
index 451d83d9..817b27ea 100644
|
||||
index 7d665b6a..55f2f210 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, != 9.8.0",
|
||||
- "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,!=9.8.0",
|
||||
"Pillow>=10.0.1",
|
||||
"pluggy>=1",
|
||||
diff --git a/src/ocrmypdf/_pipeline.py b/src/ocrmypdf/_pipeline.py
|
||||
|
||||
Reference in New Issue
Block a user