@@ -1,4 +1,4 @@
1−/* Generic builder for Python packages that come without a setup.py. */
1+# Generic builder.
22
33{ lib
44, python
@@ -60,13 +60,15 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs [
6060
6161 name = namePrefix + name;
6262
63−
64− buildInputs = [ wrapPython ] ++ buildInputs ++ pythonPath
65− ++ [ (ensureNewerSourcesHook { year = "1980"; }) ]
63+ buildInputs = ([ wrapPython (ensureNewerSourcesHook { year = "1980"; }) ]
6664 ++ (lib.optional (lib.hasSuffix "zip" attrs.src.name or "") unzip)
67− ++ lib.optionals doCheck checkInputs;
65+ ++ lib.optionals doCheck checkInputs
66+ ++ lib.optional catchConflicts setuptools # If we nog longer propagate setuptools
67+ ++ buildInputs
68+ ++ pythonPath
69+ );
6870
69− # propagate python/setuptools to active setup-hook in nix-shell
71+ # Propagate python and setuptools. We should stop propagating setuptools.
7072 propagatedBuildInputs = propagatedBuildInputs ++ [ python setuptools ];
7173
7274 # Python packages don't have a checkPhase, only an installCheckPhase