diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/ocrmypdf/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/ocrmypdf/default.nix | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/ocrmypdf/default.nix b/nixpkgs/pkgs/development/python-modules/ocrmypdf/default.nix index 531e042c5b95..5c6b87b38fed 100644 --- a/nixpkgs/pkgs/development/python-modules/ocrmypdf/default.nix +++ b/nixpkgs/pkgs/development/python-modules/ocrmypdf/default.nix @@ -28,15 +28,23 @@ buildPythonPackage rec { pname = "ocrmypdf"; - version = "12.5.0"; + version = "12.6.0"; src = fetchFromGitHub { owner = "jbarlow83"; repo = "OCRmyPDF"; rev = "v${version}"; - sha256 = "sha256-g80WedX+TGHE9EJ/RSgOc53PM17V3WZslUNaHoqKTo0="; + # The content of .git_archival.txt is substituted upon tarball creation, + # which creates indeterminism if master no longer points to the tag. + # See https://github.com/jbarlow83/OCRmyPDF/issues/841 + extraPostFetch = '' + rm "$out/.git_archival.txt" + ''; + sha256 = "0zw7c6l9fkf128gxsbd7v4abazlxiygqys6627jpsjbmxg5jgp5w"; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + patches = [ (substituteAll { src = ./paths.patch; @@ -73,6 +81,10 @@ buildPythonPackage rec { pytestCheckHook ]; + pythonImportsCheck = [ + "ocrmypdf" + ]; + meta = with lib; { homepage = "https://github.com/jbarlow83/OCRmyPDF"; description = "Adds an OCR text layer to scanned PDF files, allowing them to be searched"; |