python3Packages.ocrmypdf: fix hash

To prevent issues in the future, we remove the offending file from the
tarball.
main
Robert Schütz 3 years ago
parent 80546a3fd1
commit 8dab11404e
  1. 8
      pkgs/development/python-modules/ocrmypdf/default.nix

@ -34,7 +34,13 @@ buildPythonPackage rec {
owner = "jbarlow83";
repo = "OCRmyPDF";
rev = "v${version}";
sha256 = "sha256-gFlQztrRN69HtR6sTJl8tryuTibxQrz97QcS5UkFOVs=";
# 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;

Loading…
Cancel
Save