diff --git a/overrides.nix b/overrides.nix index 11ef0f1..bc943fe 100644 --- a/overrides.nix +++ b/overrides.nix @@ -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}")' - ''; + ''); } );