diff --git a/pkgs/development/python-modules/versiontag/default.nix b/pkgs/development/python-modules/versiontag/default.nix index aebf40a40f51..8c4bb49ebaff 100644 --- a/pkgs/development/python-modules/versiontag/default.nix +++ b/pkgs/development/python-modules/versiontag/default.nix @@ -11,6 +11,11 @@ buildPythonPackage rec { sha256 = "1axv2214ykgv5adajv10v2zy5fr9v77db54rkik6ja29p66zl90n"; }; + postPatch = '' + substituteInPlace setup.py \ + --replace "get_version(pypi=True)" '"${version}"' + ''; + checkInputs = [ git ]; pythonImportsCheck = [ "versiontag" ];