pdfminer: fix missing package version

This commit is contained in:
Austin Butler 2022-03-23 10:19:27 -07:00
parent 3bcfdb0e15
commit 7076d82805

View File

@ -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; {