overrides.importlib-metadata: Don't substituteInPlace for wheel package

Closes #241
This commit is contained in:
adisbladis 2022-01-06 05:41:28 +13:00
parent 2afe81f902
commit de898ab3fb

View file

@ -606,9 +606,9 @@ self: super:
# disable the removal of pyproject.toml, required because of setuptools_scm
dontPreferSetupPy = true;
postPatch = old.postPatch or "" + ''
postPatch = old.postPatch or "" + (lib.optionalString ((old.format or "") != "wheel") ''
substituteInPlace setup.py --replace 'setuptools.setup()' 'setuptools.setup(version="${old.version}")'
'';
'');
}
);