summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2014-11-13 21:02:45 +0100
committerDomen Kožar <domen@dev.si>2014-11-13 21:04:13 +0100
commitab423e636777c558854da61e284703b2ddc9999e (patch)
treeb7870988e42a049923cdbd73b3f78dabd931857d /pkgs/development/python-modules
parent39d1bc755eb2c4dd7bad3b7dc5dc516dfc02d5f7 (diff)
downloadnixlib-ab423e636777c558854da61e284703b2ddc9999e.tar
nixlib-ab423e636777c558854da61e284703b2ddc9999e.tar.gz
nixlib-ab423e636777c558854da61e284703b2ddc9999e.tar.bz2
nixlib-ab423e636777c558854da61e284703b2ddc9999e.tar.lz
nixlib-ab423e636777c558854da61e284703b2ddc9999e.tar.xz
nixlib-ab423e636777c558854da61e284703b2ddc9999e.tar.zst
nixlib-ab423e636777c558854da61e284703b2ddc9999e.zip
buildPythonPackage: add python to propagatedBuildInputs
Doing:

$ nix-shell -p pythonPackage.pyramid

now also sets $PYTHONPATH. Previously you'd have to do:

$ nix-shell -p pythonPackage.pyramid python
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/generic/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/generic/default.nix b/pkgs/development/python-modules/generic/default.nix
index 6ec7934e5638..260128a2ddac 100644
--- a/pkgs/development/python-modules/generic/default.nix
+++ b/pkgs/development/python-modules/generic/default.nix
@@ -57,12 +57,13 @@ if disabled then throw "${name} not supported for interpreter ${python.executabl
   name = namePrefix + name;
 
   buildInputs = [
-    python wrapPython setuptools
+    wrapPython setuptools
     (distutils-cfg.override { extraCfg = distutilsExtraCfg; })
   ] ++ buildInputs ++ pythonPath
     ++ (lib.optional (lib.hasSuffix "zip" attrs.src.name or "") unzip);
 
-  propagatedBuildInputs = propagatedBuildInputs ++ [ recursivePthLoader ];
+  # propagate python to active setup-hook in nix-shell
+  propagatedBuildInputs = propagatedBuildInputs ++ [ recursivePthLoader python ];
 
   pythonPath = [ setuptools ] ++ pythonPath;