3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.limits: fix package version

This commit is contained in:
Martin Weinelt 2022-08-26 08:59:52 +02:00
parent fee9bddb58
commit b33f9716e7

View file

@ -57,6 +57,9 @@ buildPythonPackage rec {
--replace "--cov=limits" "" \
--replace "-K" ""
substituteInPlace setup.py \
--replace "versioneer.get_version()" "'${version}'"
# Recreate _version.py, deleted at fetch time due to non-reproducibility.
echo 'def get_versions(): return {"version": "${version}"}' > limits/_version.py
'';