about summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/2.7
diff options
context:
space:
mode:
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>2016-05-29 15:12:23 +0200
committerBenno Fünfstück <benno.fuenfstueck@gmail.com>2016-05-29 15:12:23 +0200
commitc3ed3914bbde9c95c52d41a6732068e62b4ee65a (patch)
tree96c242a25397ae277523894ddf29429e58cfb993 /pkgs/development/interpreters/python/2.7
parent41fa133548517e0351c924ff55dc818e38f4a0f4 (diff)
downloadnixlib-c3ed3914bbde9c95c52d41a6732068e62b4ee65a.tar
nixlib-c3ed3914bbde9c95c52d41a6732068e62b4ee65a.tar.gz
nixlib-c3ed3914bbde9c95c52d41a6732068e62b4ee65a.tar.bz2
nixlib-c3ed3914bbde9c95c52d41a6732068e62b4ee65a.tar.lz
nixlib-c3ed3914bbde9c95c52d41a6732068e62b4ee65a.tar.xz
nixlib-c3ed3914bbde9c95c52d41a6732068e62b4ee65a.tar.zst
nixlib-c3ed3914bbde9c95c52d41a6732068e62b4ee65a.zip
python: add python.withPackages function
Fixes #15801
Diffstat (limited to 'pkgs/development/interpreters/python/2.7')
-rw-r--r--pkgs/development/interpreters/python/2.7/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/python/2.7/default.nix b/pkgs/development/interpreters/python/2.7/default.nix
index 2e94cb6874e0..a72377a47708 100644
--- a/pkgs/development/interpreters/python/2.7/default.nix
+++ b/pkgs/development/interpreters/python/2.7/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, self, callPackage
+{ stdenv, fetchurl, self, callPackage, python27Packages
 , bzip2, openssl, gettext
 
 , includeModules ? false
@@ -151,6 +151,7 @@ let
       isPy2 = true;
       isPy27 = true;
       buildEnv = callPackage ../wrapper.nix { python = self; };
+      withPackages = import ../with-packages.nix { inherit buildEnv; pythonPackages = python27Packages; };
       libPrefix = "python${majorVersion}";
       executable = libPrefix;
       sitePackages = "lib/${libPrefix}/site-packages";