python3Packages.ocrmypdf: Upgrade to tesseract5

This commit is contained in:
Martin Weinelt 2022-09-21 16:34:47 +02:00
parent 5b1a4ed0bf
commit d61d1ec883
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 5 additions and 3 deletions

View File

@ -19,7 +19,7 @@
, setuptools-scm
, setuptools-scm-git-archive
, substituteAll
, tesseract4
, tesseract
, tqdm
, unpaper
, installShellFiles
@ -50,7 +50,7 @@ buildPythonPackage rec {
gs = "${lib.getBin ghostscript}/bin/gs";
jbig2 = "${lib.getBin jbig2enc}/bin/jbig2";
pngquant = "${lib.getBin pngquant}/bin/pngquant";
tesseract = "${lib.getBin tesseract4}/bin/tesseract";
tesseract = "${lib.getBin tesseract}/bin/tesseract";
unpaper = "${lib.getBin unpaper}/bin/unpaper";
})
];

View File

@ -6328,7 +6328,9 @@ in {
ocifs = callPackage ../development/python-modules/ocifs { };
ocrmypdf = callPackage ../development/python-modules/ocrmypdf { };
ocrmypdf = callPackage ../development/python-modules/ocrmypdf {
tesseract = pkgs.tesseract5;
};
od = callPackage ../development/python-modules/od { };