nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python310Packages.ocrmypdf: 13.7.0 -> 14.0.1

https://github.com/ocrmypdf/OCRmyPDF/blob/v14.0.1/docs/release_notes.rst

authored by

Robert Schütz and committed by
Robert Schütz
5b1d10d3 621fa847

+17 -9
+17 -9
pkgs/development/python-modules/ocrmypdf/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , coloredlogs 4 + , deprecation 4 5 , fetchFromGitHub 5 6 , ghostscript 6 7 , img2pdf 7 - , importlib-metadata 8 8 , importlib-resources 9 9 , jbig2enc 10 + , packaging 10 11 , pdfminer-six 11 12 , pikepdf 12 13 , pillow ··· 17 16 , pytestCheckHook 18 17 , pythonOlder 19 18 , reportlab 19 + , setuptools 20 20 , setuptools-scm 21 - , setuptools-scm-git-archive 22 21 , substituteAll 23 22 , tesseract 24 23 , tqdm 24 + , typing-extensions 25 25 , unpaper 26 26 , installShellFiles 27 27 }: 28 28 29 29 buildPythonPackage rec { 30 30 pname = "ocrmypdf"; 31 - version = "13.7.0"; 31 + version = "14.0.1"; 32 + 33 + disabled = pythonOlder "3.8"; 34 + 35 + format = "pyproject"; 32 36 33 37 src = fetchFromGitHub { 34 38 owner = "ocrmypdf"; ··· 45 39 postFetch = '' 46 40 rm "$out/.git_archival.txt" 47 41 ''; 48 - hash = "sha256-cw2wZMPhWzxRpeM90g9NmuYBYpU13R2iDzs7a8SS/CY="; 42 + hash = "sha256-eYn24FkAXj/ESCoC0QaLY+wRhkxZP1KnuY4VU1WiG24="; 49 43 }; 50 44 51 45 SETUPTOOLS_SCM_PRETEND_VERSION = version; ··· 62 56 ]; 63 57 64 58 nativeBuildInputs = [ 65 - setuptools-scm-git-archive 59 + setuptools 66 60 setuptools-scm 67 61 installShellFiles 68 62 ]; 69 63 70 64 propagatedBuildInputs = [ 71 65 coloredlogs 66 + deprecation 72 67 img2pdf 68 + packaging 73 69 pdfminer-six 74 70 pikepdf 75 71 pillow 76 72 pluggy 77 73 reportlab 78 74 tqdm 79 - ] ++ (lib.optionals (pythonOlder "3.8") [ 80 - importlib-metadata 81 - ]) ++ (lib.optionals (pythonOlder "3.9") [ 75 + ] ++ lib.optionals (pythonOlder "3.9") [ 82 76 importlib-resources 83 - ]); 77 + ] ++ lib.optionals (pythonOlder "3.10") [ 78 + typing-extensions 79 + ]; 84 80 85 81 checkInputs = [ 86 82 pytest-xdist