summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/mk-python-derivation.nix
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2022-08-09 18:48:56 +0200
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2022-09-13 18:48:08 +0200
commit13bb0f49f7afe8296452d70e7782ac1d67b064da (patch)
tree676bf1cdd694f4225a9e255cdfe0c930d849a295 /pkgs/development/interpreters/python/mk-python-derivation.nix
parent2444caed5af0e535220faf19929bc7b969cf35c1 (diff)
downloadnixpkgs-13bb0f49f7afe8296452d70e7782ac1d67b064da.tar
nixpkgs-13bb0f49f7afe8296452d70e7782ac1d67b064da.tar.gz
nixpkgs-13bb0f49f7afe8296452d70e7782ac1d67b064da.tar.bz2
nixpkgs-13bb0f49f7afe8296452d70e7782ac1d67b064da.tar.lz
nixpkgs-13bb0f49f7afe8296452d70e7782ac1d67b064da.tar.xz
nixpkgs-13bb0f49f7afe8296452d70e7782ac1d67b064da.tar.zst
nixpkgs-13bb0f49f7afe8296452d70e7782ac1d67b064da.zip
buildPython*: wrap setuptools in hook for catching conflicts
By default buildPython* runs a hook for detecting conflicting packages.
This hook needs pkg_resources which is part of setuptools.

Before this commit, setuptools was simply added to the build. This meant
that when setuptools was forgotten to be added to the build, the build
and installation would still succeed because of this package from the
hook. During runtime (and cross-compilation) one would notice the
missing package.
Diffstat (limited to 'pkgs/development/interpreters/python/mk-python-derivation.nix')
-rw-r--r--pkgs/development/interpreters/python/mk-python-derivation.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix
index f82611554a2..abb1ceb7879 100644
--- a/pkgs/development/interpreters/python/mk-python-derivation.nix
+++ b/pkgs/development/interpreters/python/mk-python-derivation.nix
@@ -126,7 +126,7 @@ let
       ensureNewerSourcesForZipFilesHook  # move to wheel installer (pip) or builder (setuptools, flit, ...)?
       pythonRemoveTestsDirHook
     ] ++ lib.optionals catchConflicts [
-      setuptools pythonCatchConflictsHook
+      pythonCatchConflictsHook
     ] ++ lib.optionals removeBinBytecode [
       pythonRemoveBinBytecodeHook
     ] ++ lib.optionals (lib.hasSuffix "zip" (attrs.src.name or "")) [