about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ocrmypdf
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2021-10-05 16:51:10 -0700
committerRobert Schütz <nix@dotlambda.de>2021-10-06 10:21:14 -0700
commit8dab11404e50f48e303434b4923d086d165d0481 (patch)
treefee3d7fc6cba50b13a95412596cdc66c1cf10c0d /pkgs/development/python-modules/ocrmypdf
parent80546a3fd1470871bd2c183143d234b52cfc4dd8 (diff)
python3Packages.ocrmypdf: fix hash
To prevent issues in the future, we remove the offending file from the
tarball.
Diffstat (limited to 'pkgs/development/python-modules/ocrmypdf')
-rw-r--r--pkgs/development/python-modules/ocrmypdf/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/ocrmypdf/default.nix b/pkgs/development/python-modules/ocrmypdf/default.nix
index 0f2dd593c62e2..5c6b87b38fed2 100644
--- a/pkgs/development/python-modules/ocrmypdf/default.nix
+++ b/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;