mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 01:31:39 -05:00
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:
commit
bb8f11f039
1 changed files with 3 additions and 2 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Reference in a new issue