python310Packages.ocrmypdf: 13.7.0 -> 14.0.1

https://github.com/ocrmypdf/OCRmyPDF/blob/v14.0.1/docs/release_notes.rst
This commit is contained in:
Robert Schütz 2022-11-08 18:26:06 -08:00 committed by Robert Schütz
parent 621fa84767
commit 5b1d10d31e

View File

@ -1,12 +1,13 @@
{ lib
, buildPythonPackage
, coloredlogs
, deprecation
, fetchFromGitHub
, ghostscript
, img2pdf
, importlib-metadata
, importlib-resources
, jbig2enc
, packaging
, pdfminer-six
, pikepdf
, pillow
@ -16,18 +17,23 @@
, pytestCheckHook
, pythonOlder
, reportlab
, setuptools
, setuptools-scm
, setuptools-scm-git-archive
, substituteAll
, tesseract
, tqdm
, typing-extensions
, unpaper
, installShellFiles
}:
buildPythonPackage rec {
pname = "ocrmypdf";
version = "13.7.0";
version = "14.0.1";
disabled = pythonOlder "3.8";
format = "pyproject";
src = fetchFromGitHub {
owner = "ocrmypdf";
@ -39,7 +45,7 @@ buildPythonPackage rec {
postFetch = ''
rm "$out/.git_archival.txt"
'';
hash = "sha256-cw2wZMPhWzxRpeM90g9NmuYBYpU13R2iDzs7a8SS/CY=";
hash = "sha256-eYn24FkAXj/ESCoC0QaLY+wRhkxZP1KnuY4VU1WiG24=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
@ -56,25 +62,27 @@ buildPythonPackage rec {
];
nativeBuildInputs = [
setuptools-scm-git-archive
setuptools
setuptools-scm
installShellFiles
];
propagatedBuildInputs = [
coloredlogs
deprecation
img2pdf
packaging
pdfminer-six
pikepdf
pillow
pluggy
reportlab
tqdm
] ++ (lib.optionals (pythonOlder "3.8") [
importlib-metadata
]) ++ (lib.optionals (pythonOlder "3.9") [
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
]);
] ++ lib.optionals (pythonOlder "3.10") [
typing-extensions
];
checkInputs = [
pytest-xdist