Merge pull request #412 from jashandeep-sohi/fix/zipp-prepatch-override

fix(zipp): skip patching setup.py if format is wheel
This commit is contained in:
adisbladis 2021-10-04 10:47:48 -05:00 committed by GitHub
commit bb8f11f039
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1854,13 +1854,14 @@ self: super:
if lib.versionAtLeast super.zipp.version "2.0.0" then
(
super.zipp.overridePythonAttrs (
old: {
old:
if (old.format or "pyproject") != "wheel" then {
prePatch = ''
substituteInPlace setup.py --replace \
'setuptools.setup()' \
'setuptools.setup(version="${super.zipp.version}")'
'';
}
} else old
)
) else super.zipp
).overridePythonAttrs (