From 7076d82805693b8d3c37d00e68145c5c2a367cbc Mon Sep 17 00:00:00 2001 From: Austin Butler Date: Wed, 23 Mar 2022 10:19:27 -0700 Subject: [PATCH] pdfminer: fix missing package version --- pkgs/development/python-modules/pdfminer_six/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/pdfminer_six/default.nix b/pkgs/development/python-modules/pdfminer_six/default.nix index 6d2b0adcf41c..449ea4f7fd77 100644 --- a/pkgs/development/python-modules/pdfminer_six/default.nix +++ b/pkgs/development/python-modules/pdfminer_six/default.nix @@ -21,6 +21,12 @@ buildPythonPackage rec { done ''; + postPatch = '' + # Verion is not stored in repo, gets added by a GitHub action after tag is created + # https://github.com/pdfminer/pdfminer.six/pull/727 + substituteInPlace pdfminer/__init__.py --replace "__VERSION__" ${version} + ''; + checkInputs = [ pytestCheckHook ]; meta = with lib; {