diff options
author | Robert Schütz <nix@dotlambda.de> | 2022-11-08 18:26:06 -0800 |
---|---|---|
committer | Robert Schütz <github@dotlambda.de> | 2022-11-10 10:11:55 -0800 |
commit | 5b1d10d31e46bb5a8beb6f9067fc961fc0e420c0 (patch) | |
tree | 915bab2545e831a7c9fc66c50bd9e4a32e6e7527 /pkgs/development/python-modules/ocrmypdf | |
parent | 621fa84767b5e46886b852b61eeda31c134d125b (diff) |
python310Packages.ocrmypdf: 13.7.0 -> 14.0.1
https://github.com/ocrmypdf/OCRmyPDF/blob/v14.0.1/docs/release_notes.rst
Diffstat (limited to 'pkgs/development/python-modules/ocrmypdf')
-rw-r--r-- | pkgs/development/python-modules/ocrmypdf/default.nix | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/ocrmypdf/default.nix b/pkgs/development/python-modules/ocrmypdf/default.nix index 77dee64bb45fa..f61f94f00c267 100644 --- a/pkgs/development/python-modules/ocrmypdf/default.nix +++ b/pkgs/development/python-modules/ocrmypdf/default.nix @@ -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 |