python39Packages.versiontag: fix version not being set

This commit is contained in:
Sandro Jäckel 2022-02-07 03:24:55 +01:00 committed by Jonathan Ringer
parent 8edb8eadeb
commit 7d7a5249d4

View file

@ -11,6 +11,11 @@ buildPythonPackage rec {
sha256 = "1axv2214ykgv5adajv10v2zy5fr9v77db54rkik6ja29p66zl90n"; sha256 = "1axv2214ykgv5adajv10v2zy5fr9v77db54rkik6ja29p66zl90n";
}; };
postPatch = ''
substituteInPlace setup.py \
--replace "get_version(pypi=True)" '"${version}"'
'';
checkInputs = [ git ]; checkInputs = [ git ];
pythonImportsCheck = [ "versiontag" ]; pythonImportsCheck = [ "versiontag" ];