Robert Schütz
2023-12-20 20:15:33 +01:00
committed by Martin Weinelt
parent fe3fca2b92
commit 32a6949d54
2 changed files with 9 additions and 9 deletions
@@ -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