python311Packages.ocrmypdf: 15.4.0 -> 15.4.4
Diff: https://github.com/ocrmypdf/OCRmyPDF/compare/v15.4.0...v15.4.4 Changelog: https://github.com/ocrmypdf/OCRmyPDF/blob/v15.4.4/docs/release_notes.rst
This commit is contained in:
@@ -31,11 +31,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ocrmypdf";
|
||||
version = "15.4.0";
|
||||
version = "15.4.4";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ocrmypdf";
|
||||
@@ -47,10 +47,10 @@ buildPythonPackage rec {
|
||||
postFetch = ''
|
||||
rm "$out/.git_archival.txt"
|
||||
'';
|
||||
hash = "sha256-cbKqisaRAeT8ljANbYiUDrptAoQmmIkMu1ya8O6nXvQ=";
|
||||
hash = "sha256-Ff0OrSJFglVPpSNB0KvDMnatj+P57zWdcVAFaM+Sg0s=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
diff --git a/src/ocrmypdf/_exec/ghostscript.py b/src/ocrmypdf/_exec/ghostscript.py
|
||||
index 92b73a0a..9f04555c 100644
|
||||
index 94eec244..4bb15db9 100644
|
||||
--- a/src/ocrmypdf/_exec/ghostscript.py
|
||||
+++ b/src/ocrmypdf/_exec/ghostscript.py
|
||||
@@ -58,7 +58,7 @@ log.addFilter(DuplicateFilter(log))
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ COLOR_CONVERSION_STRATEGIES = frozenset(
|
||||
]
|
||||
)
|
||||
# Ghostscript executable - gswin32c is not supported
|
||||
-GS = 'gswin64c' if os.name == 'nt' else 'gs'
|
||||
+GS = '@gs@'
|
||||
|
||||
|
||||
def version() -> Version:
|
||||
log = logging.getLogger(__name__)
|
||||
diff --git a/src/ocrmypdf/_exec/jbig2enc.py b/src/ocrmypdf/_exec/jbig2enc.py
|
||||
index 5a34a95a..5ee1b333 100644
|
||||
--- a/src/ocrmypdf/_exec/jbig2enc.py
|
||||
|
||||
Reference in New Issue
Block a user