git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19309 from FRidh/outputs
cffdffeFrederik Rietdijk
doc/languages-frameworks/python.md+5−20
@@ -416,29 +416,14 @@ aliases `python` and `python3` correspond to respectively `python27` and
416`python35`. The Nix expressions for the interpreters can be found in
416`python35`. The Nix expressions for the interpreters can be found in
417`pkgs/development/interpreters/python`.
417`pkgs/development/interpreters/python`.
418
418
419−
420−#### Missing modules standard library
421−
422−The interpreters `python26` and `python27` do not include modules that
423−require external dependencies. This is done in order to reduce the closure size.
424−The following modules need to be added as `buildInput` explicitly:
425−
426−* `python.modules.bsddb`
427−* `python.modules.curses`
428−* `python.modules.curses_panel`
429−* `python.modules.crypt`
430−* `python.modules.gdbm`
431−* `python.modules.sqlite3`
432−* `python.modules.tkinter`
433−* `python.modules.readline`
434−
435−For convenience `python27Full` and `python26Full` are provided with all
436−modules included.
437−
438All packages depending on any Python interpreter get appended
419All packages depending on any Python interpreter get appended
439`out/{python.sitePackages}` to `$PYTHONPATH` if such directory
420`out/{python.sitePackages}` to `$PYTHONPATH` if such directory
440exists.
421exists.
441
422
423+#### Missing `tkinter` module standard library
424+
425+To reduce closure size the `Tkinter`/`tkinter` is put in a separate output. The `tkinter` is available as `python35Packages.tkinter`.
426+
442#### Attributes on interpreters packages
427#### Attributes on interpreters packages
443
428
444Each interpreter has the following attributes:
429Each interpreter has the following attributes:
@@ -448,7 +433,7 @@ Each interpreter has the following attributes:
448- `buildEnv`. Function to build python interpreter environments with extra packages bundled together. See section *python.buildEnv function* for usage and documentation.
433- `buildEnv`. Function to build python interpreter environments with extra packages bundled together. See section *python.buildEnv function* for usage and documentation.
449- `withPackages`. Simpler interface to `buildEnv`. See section *python.withPackages function* for usage and documentation.
434- `withPackages`. Simpler interface to `buildEnv`. See section *python.withPackages function* for usage and documentation.
450- `sitePackages`. Alias for `lib/${libPrefix}/site-packages`.
435- `sitePackages`. Alias for `lib/${libPrefix}/site-packages`.
451−- `executable`. Name of the interpreter executable, ie `python3.4`.
436+- `executable`. Name of the interpreter executable, e.g. `python3.4`.
452
437
453### Building packages and applications
438### Building packages and applications
454
439
nixos/modules/services/web-servers/apache-httpd/trac.nix−1
@@ -102,7 +102,6 @@ in
102 pkgs.setuptools
102 pkgs.setuptools
103 pkgs.pythonPackages.genshi
103 pkgs.pythonPackages.genshi
104 pkgs.pythonPackages.psycopg2
104 pkgs.pythonPackages.psycopg2
105− pkgs.python.modules.sqlite3
106 subversion
105 subversion
107 ];
106 ];
108 };
107 };
pkgs/applications/misc/loxodo/default.nix+1−1
@@ -12,7 +12,7 @@ py.buildPythonApplication rec {
12 sha256 = "1cg0dfcv57ps54f1a0ksib7hgkrbdi9q699w302xyyfyvjcb5dd2";
12 sha256 = "1cg0dfcv57ps54f1a0ksib7hgkrbdi9q699w302xyyfyvjcb5dd2";
13 };
13 };
14
14
15− propagatedBuildInputs = with py; [ wxPython python.modules.readline ];
15+ propagatedBuildInputs = with py; [ wxPython ];
16
16
17 postInstall = ''
17 postInstall = ''
18 mv $out/bin/loxodo.py $out/bin/loxodo
18 mv $out/bin/loxodo.py $out/bin/loxodo
pkgs/applications/misc/ranger/default.nix+1−1
@@ -15,7 +15,7 @@ pythonPackages.buildPythonApplication rec {
15 sha256 = "0yaviybviwdvfg2a0pf2kk28g10k245499xmbpqlai7fv91f7xll";
15 sha256 = "0yaviybviwdvfg2a0pf2kk28g10k245499xmbpqlai7fv91f7xll";
16 };
16 };
17
17
18− propagatedBuildInputs = [ pythonPackages.python.modules.curses file ];
18+ propagatedBuildInputs = [ file ];
19
19
20 preConfigure = ''
20 preConfigure = ''
21 substituteInPlace ranger/ext/img_display.py \
21 substituteInPlace ranger/ext/img_display.py \
pkgs/applications/misc/roxterm/default.nix+3−3
@@ -1,7 +1,7 @@
1{ stdenv, fetchurl, docbook_xsl, dbus_libs, dbus_glib, expat, gettext
1{ stdenv, fetchurl, docbook_xsl, dbus_libs, dbus_glib, expat, gettext
2, gsettings_desktop_schemas, gdk_pixbuf, gtk2, gtk3, hicolor_icon_theme
2, gsettings_desktop_schemas, gdk_pixbuf, gtk2, gtk3, hicolor_icon_theme
3, imagemagick, itstool, librsvg, libtool, libxslt, lockfile, makeWrapper
3, imagemagick, itstool, librsvg, libtool, libxslt, lockfile, makeWrapper
4−, pkgconfig, pythonFull, pythonPackages, vte }:
4+, pkgconfig, python, pythonPackages, vte }:
5
5
6# TODO: Still getting following warning.
6# TODO: Still getting following warning.
7# WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
7# WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
@@ -19,7 +19,7 @@ in stdenv.mkDerivation rec {
19
19
20 buildInputs =
20 buildInputs =
21 [ docbook_xsl expat imagemagick itstool librsvg libtool libxslt
21 [ docbook_xsl expat imagemagick itstool librsvg libtool libxslt
22− makeWrapper pkgconfig pythonFull pythonPackages.lockfile ];
22+ makeWrapper pkgconfig python pythonPackages.lockfile ];
23
23
24 propagatedBuildInputs =
24 propagatedBuildInputs =
25 [ dbus_libs dbus_glib gdk_pixbuf gettext gsettings_desktop_schemas gtk2 gtk3 hicolor_icon_theme vte ];
25 [ dbus_libs dbus_glib gdk_pixbuf gettext gsettings_desktop_schemas gtk2 gtk3 hicolor_icon_theme vte ];
@@ -29,7 +29,7 @@ in stdenv.mkDerivation rec {
29 "-I${dbus_libs.lib}/lib/dbus-1.0/include" ];
29 "-I${dbus_libs.lib}/lib/dbus-1.0/include" ];
30
30
31 # Fix up python path so the lockfile library is on it.
31 # Fix up python path so the lockfile library is on it.
32− PYTHONPATH = stdenv.lib.makeSearchPathOutput "lib" pythonFull.sitePackages [
32+ PYTHONPATH = stdenv.lib.makeSearchPathOutput "lib" python.sitePackages [
33 pythonPackages.curses pythonPackages.lockfile
33 pythonPackages.curses pythonPackages.lockfile
34 ];
34 ];
35
35
pkgs/applications/misc/rtv/default.nix−1
@@ -17,7 +17,6 @@ pythonPackages.buildPythonApplication rec {
17 six
17 six
18 praw
18 praw
19 kitchen
19 kitchen
20− python.modules.curses
21 praw
20 praw
22 ] ++ lib.optional (!pythonPackages.isPy3k) futures;
21 ] ++ lib.optional (!pythonPackages.isPy3k) futures;
23
22
pkgs/applications/networking/mailreaders/mailpile/default.nix+1−1
@@ -16,7 +16,7 @@ pythonPackages.buildPythonApplication rec {
16
16
17 propagatedBuildInputs = with pythonPackages; [
17 propagatedBuildInputs = with pythonPackages; [
18 makeWrapper pillow jinja2 spambayes pythonPackages.lxml
18 makeWrapper pillow jinja2 spambayes pythonPackages.lxml
19− python.modules.readline pgpdump gnupg1orig
19+ pgpdump gnupg1orig
20 ];
20 ];
21
21
22 postInstall = ''
22 postInstall = ''
pkgs/applications/version-management/bazaar/default.nix−3
@@ -10,9 +10,6 @@ pythonPackages.buildPythonApplication rec {
10 sha256 = "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d";
10 sha256 = "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d";
11 };
11 };
12
12
13− # Readline support is needed by bzrtools.
14− propagatedBuildInputs = [ pythonPackages.python.modules.readline ];
15−
16 doCheck = false;
13 doCheck = false;
17
14
18 # Bazaar can't find the certificates alone
15 # Bazaar can't find the certificates alone
pkgs/applications/video/kodi/default.nix+3−3
@@ -1,5 +1,5 @@
1{ stdenv, lib, fetchurl, makeWrapper
1{ stdenv, lib, fetchurl, makeWrapper
2−, pkgconfig, cmake, gnumake, yasm, pythonFull
2+, pkgconfig, cmake, gnumake, yasm, python
3, boost, avahi, libdvdcss, lame, autoreconfHook
3, boost, avahi, libdvdcss, lame, autoreconfHook
4, gettext, pcre-cpp, yajl, fribidi, which
4, gettext, pcre-cpp, yajl, fribidi, which
5, openssl, gperf, tinyxml2, taglib, libssh, swig, jre
5, openssl, gperf, tinyxml2, taglib, libssh, swig, jre
@@ -54,7 +54,7 @@ in stdenv.mkDerivation rec {
54
54
55 buildInputs = [
55 buildInputs = [
56 makeWrapper libxml2 gnutls
56 makeWrapper libxml2 gnutls
57− pkgconfig cmake gnumake yasm pythonFull
57+ pkgconfig cmake gnumake yasm python
58 boost libmicrohttpd autoreconfHook
58 boost libmicrohttpd autoreconfHook
59 gettext pcre-cpp yajl fribidi libva
59 gettext pcre-cpp yajl fribidi libva
60 openssl gperf tinyxml2 taglib libssh swig jre
60 openssl gperf tinyxml2 taglib libssh swig jre
@@ -107,7 +107,7 @@ in stdenv.mkDerivation rec {
107 postInstall = ''
107 postInstall = ''
108 for p in $(ls $out/bin/) ; do
108 for p in $(ls $out/bin/) ; do
109 wrapProgram $out/bin/$p \
109 wrapProgram $out/bin/$p \
110− --prefix PATH ":" "${pythonFull}/bin" \
110+ --prefix PATH ":" "${python}/bin" \
111 --prefix PATH ":" "${glxinfo}/bin" \
111 --prefix PATH ":" "${glxinfo}/bin" \
112 --prefix PATH ":" "${xdpyinfo}/bin" \
112 --prefix PATH ":" "${xdpyinfo}/bin" \
113 --prefix LD_LIBRARY_PATH ":" "${lib.makeLibraryPath
113 --prefix LD_LIBRARY_PATH ":" "${lib.makeLibraryPath
pkgs/development/compilers/edk2/default.nix+3−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchgit, libuuid, pythonFull, iasl }:
1+{ stdenv, fetchgit, libuuid, python, iasl }:
2
2
3let
3let
4
4
@@ -18,7 +18,7 @@ edk2 = stdenv.mkDerivation {
18 sha256 = "0s9ywb8w7xzlnmm4kwzykxkrdaw53b7pky121cc9wjkllzqwyxrb";
18 sha256 = "0s9ywb8w7xzlnmm4kwzykxkrdaw53b7pky121cc9wjkllzqwyxrb";
19 };
19 };
20
20
21− buildInputs = [ libuuid pythonFull ];
21+ buildInputs = [ libuuid python python.tkinter ];
22
22
23 makeFlags = "-C BaseTools";
23 makeFlags = "-C BaseTools";
24
24
@@ -40,7 +40,7 @@ edk2 = stdenv.mkDerivation {
40
40
41 passthru = {
41 passthru = {
42 setup = projectDscPath: attrs: {
42 setup = projectDscPath: attrs: {
43− buildInputs = [ pythonFull ] ++
43+ buildInputs = [ python python.tkinter ] ++
44 stdenv.lib.optionals (attrs ? buildInputs) attrs.buildInputs;
44 stdenv.lib.optionals (attrs ? buildInputs) attrs.buildInputs;
45
45
46 configurePhase = ''
46 configurePhase = ''
pkgs/development/interpreters/python/cpython/2.7/default.nix+15−108
@@ -1,8 +1,5 @@
1{ stdenv, fetchurl, fetchpatch, self, callPackage, python27Packages
1{ stdenv, fetchurl, fetchpatch, self, callPackage, python27Packages
2, bzip2, openssl, gettext
2, bzip2, openssl, gettext
3−
4−, includeModules ? false
5−
6, db, gdbm, ncurses, sqlite, readline
3, db, gdbm, ncurses, sqlite, readline
7
4
8, tcl ? null, tk ? null, xlibsWrapper ? null, libX11 ? null, x11Support ? !stdenv.isCygwin
5, tcl ? null, tk ? null, xlibsWrapper ? null, libX11 ? null, x11Support ? !stdenv.isCygwin
@@ -27,6 +24,7 @@ let
27 pythonVersion = majorVersion;
24 pythonVersion = majorVersion;
28 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
25 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
29 libPrefix = "python${majorVersion}";
26 libPrefix = "python${majorVersion}";
27+ sitePackages = "lib/${libPrefix}/site-packages";
30
28
31 src = fetchurl {
29 src = fetchurl {
32 url = "https://www.python.org/ftp/python/${majorVersion}.${minorVersion}/Python-${version}.tar.xz";
30 url = "https://www.python.org/ftp/python/${majorVersion}.${minorVersion}/Python-${version}.tar.xz";
@@ -113,10 +111,8 @@ let
113 optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc ++
111 optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc ++
114 [ bzip2 openssl ]
112 [ bzip2 openssl ]
115 ++ optionals stdenv.isCygwin [ expat libffi ]
113 ++ optionals stdenv.isCygwin [ expat libffi ]
116− ++ optionals includeModules (
117− [ db gdbm ncurses sqlite readline
114+ ++ [ db gdbm ncurses sqlite readline ]
118− ] ++ optionals x11Support [ tcl tk xlibsWrapper libX11 ]
115+ ++ optionals x11Support [ tcl tk xlibsWrapper libX11 ]
119− )
120 ++ optional zlibSupport zlib
116 ++ optional zlibSupport zlib
121 ++ optional stdenv.isDarwin CF;
117 ++ optional stdenv.isDarwin CF;
122
118
@@ -129,7 +125,8 @@ let
129
125
130 # Build the basic Python interpreter without modules that have
126 # Build the basic Python interpreter without modules that have
131 # external dependencies.
127 # external dependencies.
128+
132− python = stdenv.mkDerivation {
129+in stdenv.mkDerivation {
133 name = "python-${version}";
130 name = "python-${version}";
134 pythonVersion = majorVersion;
131 pythonVersion = majorVersion;
135
132
@@ -165,20 +162,25 @@ let
165 # Python on Nix is not manylinux1 compatible. https://github.com/NixOS/nixpkgs/issues/18484
162 # Python on Nix is not manylinux1 compatible. https://github.com/NixOS/nixpkgs/issues/18484
166 echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
163 echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
167
164
168− ${optionalString includeModules "$out/bin/python ./setup.py build_ext"}
169−
170 rm "$out"/lib/python*/plat-*/regen # refers to glibc.dev
165 rm "$out"/lib/python*/plat-*/regen # refers to glibc.dev
171 '';
166 '';
172
167
168+ postFixup = optionalString x11Support ''
169+ # tkinter goes in a separate output
170+ mkdir -p $tkinter/${sitePackages}
171+ mv $out/lib/${libPrefix}/lib-dynload/_tkinter* $tkinter/${sitePackages}/
172+ '';
173+
174+ outputs = ["out"] ++ optional x11Support "tkinter";
175+
173 passthru = rec {
176 passthru = rec {
174− inherit libPrefix;
177+ inherit libPrefix sitePackages;
175 inherit zlibSupport;
178 inherit zlibSupport;
176 isPy2 = true;
179 isPy2 = true;
177 isPy27 = true;
180 isPy27 = true;
178 buildEnv = callPackage ../../wrapper.nix { python = self; };
181 buildEnv = callPackage ../../wrapper.nix { python = self; };
179 withPackages = import ../../with-packages.nix { inherit buildEnv; pythonPackages = python27Packages; };
182 withPackages = import ../../with-packages.nix { inherit buildEnv; pythonPackages = python27Packages; };
180 executable = libPrefix;
183 executable = libPrefix;
181− sitePackages = "lib/${libPrefix}/site-packages";
182 interpreter = "${self}/bin/${executable}";
184 interpreter = "${self}/bin/${executable}";
183 };
185 };
184
186
@@ -200,99 +202,4 @@ let
200 platforms = stdenv.lib.platforms.all;
202 platforms = stdenv.lib.platforms.all;
201 maintainers = with stdenv.lib.maintainers; [ chaoflow domenkozar ];
203 maintainers = with stdenv.lib.maintainers; [ chaoflow domenkozar ];
202 };
204 };
203− };
205+ }
204−
205−
206− # This function builds a Python module included in the main Python
207− # distribution in a separate derivation.
208− buildInternalPythonModule =
209− { moduleName
210− , internalName ? "_" + moduleName
211− , deps
212− }:
213− if includeModules then null else stdenv.mkDerivation rec {
214− name = "python-${moduleName}-${python.version}";
215−
216− inherit src patches preConfigure postConfigure configureFlags;
217−
218− buildInputs = [ python ] ++ deps;
219−
220− # We need to set this for python.buildEnv
221− pythonPath = [];
222−
223− inherit (mkPaths buildInputs) C_INCLUDE_PATH LIBRARY_PATH;
224−
225− # non-python gdbm has a libintl dependency on i686-cygwin, not on x86_64-cygwin
226− buildPhase = (if (stdenv.system == "i686-cygwin" && moduleName == "gdbm") then ''
227− sed -i setup.py -e "s:libraries = \['gdbm'\]:libraries = ['gdbm', 'intl']:"
228− '' else '''') + ''
229− substituteInPlace setup.py --replace 'self.extensions = extensions' \
230− 'self.extensions = [ext for ext in self.extensions if ext.name in ["${internalName}"]]'
231−
232− python ./setup.py build_ext
233− [ -z "$(find build -name '*_failed.so' -print)" ]
234− '';
235−
236− installPhase =
237− ''
238− dest=$out/lib/${python.libPrefix}/site-packages
239− mkdir -p $dest
240− cp -p $(find . -name "*.${if stdenv.isCygwin then "dll" else "so"}") $dest/
241− '';
242− };
243−
244−
245− # The Python modules included in the main Python distribution, built
246− # as separate derivations.
247− modules = {
248−
249− bsddb = buildInternalPythonModule {
250− moduleName = "bsddb";
251− deps = [ db ];
252− };
253−
254− curses = buildInternalPythonModule {
255− moduleName = "curses";
256− deps = [ ncurses ];
257− };
258−
259− curses_panel = buildInternalPythonModule {
260− moduleName = "curses_panel";
261− deps = [ ncurses modules.curses ];
262− };
263−
264− crypt = buildInternalPythonModule {
265− moduleName = "crypt";
266− internalName = "crypt";
267− deps = optional (stdenv ? glibc) stdenv.glibc;
268− };
269−
270− gdbm = buildInternalPythonModule {
271− moduleName = "gdbm";
272− internalName = "gdbm";
273− deps = [ gdbm ] ++ stdenv.lib.optional stdenv.isCygwin gettext;
274− };
275−
276− sqlite3 = buildInternalPythonModule {
277− moduleName = "sqlite3";
278− deps = [ sqlite ];
279− };
280−
281− } // optionalAttrs x11Support {
282−
283− tkinter = if stdenv.isCygwin then null else (buildInternalPythonModule {
284− moduleName = "tkinter";
285− deps = [ tcl tk xlibsWrapper libX11 ];
286− });
287−
288− } // {
289−
290− readline = buildInternalPythonModule {
291− moduleName = "readline";
292− internalName = "readline";
293− deps = [ readline ];
294− };
295−
296− };
297−
298−in python // { inherit modules; }
pkgs/development/interpreters/python/cpython/3.3/default.nix+19−2
@@ -26,6 +26,7 @@ let
26 pythonVersion = majorVersion;
26 pythonVersion = majorVersion;
27 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
27 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
28 libPrefix = "python${majorVersion}";
28 libPrefix = "python${majorVersion}";
29+ sitePackages = "lib/${libPrefix}/site-packages";
29
30
30 buildInputs = filter (p: p != null) [
31 buildInputs = filter (p: p != null) [
31 zlib bzip2 lzma gdbm sqlite db readline ncurses openssl tcl tk libX11 xproto
32 zlib bzip2 lzma gdbm sqlite db readline ncurses openssl tcl tk libX11 xproto
@@ -79,8 +80,25 @@ stdenv.mkDerivation {
79 echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
80 echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
80 '';
81 '';
81
82
83+ postFixup = ''
84+ # Get rid of retained dependencies on -dev packages, and remove
85+ # some $TMPDIR references to improve binary reproducibility.
86+ for i in $out/lib/python${majorVersion}/_sysconfigdata.py $out/lib/python${majorVersion}/config-${majorVersion}m/Makefile; do
87+ sed -i $i -e "s|-I/nix/store/[^ ']*||g" -e "s|-L/nix/store/[^ ']*||g" -e "s|$TMPDIR|/no-such-path|g"
88+ done
89+
90+ # FIXME: should regenerate this.
91+ rm $out/lib/python${majorVersion}/__pycache__/_sysconfigdata.cpython*
92+
93+ # tkinter goes in a separate output
94+ mkdir -p $tkinter/${sitePackages}
95+ mv $out/lib/${libPrefix}/lib-dynload/_tkinter* $tkinter/${sitePackages}/
96+ '';
97+
98+ outputs = ["out" "tkinter"];
99+
82 passthru = rec {
100 passthru = rec {
83− inherit libPrefix;
101+ inherit libPrefix sitePackages;
84 zlibSupport = zlib != null;
102 zlibSupport = zlib != null;
85 sqliteSupport = sqlite != null;
103 sqliteSupport = sqlite != null;
86 dbSupport = db != null;
104 dbSupport = db != null;
@@ -93,7 +111,6 @@ stdenv.mkDerivation {
93 isPy3 = true;
111 isPy3 = true;
94 isPy33 = true;
112 isPy33 = true;
95 is_py3k = true; # deprecated
113 is_py3k = true; # deprecated
96− sitePackages = "lib/${libPrefix}/site-packages";
97 interpreter = "${self}/bin/${executable}";
114 interpreter = "${self}/bin/${executable}";
98 };
115 };
99
116
pkgs/development/interpreters/python/cpython/3.4/default.nix+19−2
@@ -28,6 +28,7 @@ let
28 pythonVersion = majorVersion;
28 pythonVersion = majorVersion;
29 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
29 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
30 libPrefix = "python${majorVersion}";
30 libPrefix = "python${majorVersion}";
31+ sitePackages = "lib/${libPrefix}/site-packages";
31
32
32 buildInputs = filter (p: p != null) [
33 buildInputs = filter (p: p != null) [
33 zlib
34 zlib
@@ -102,8 +103,25 @@ stdenv.mkDerivation {
102 echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
103 echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
103 '';
104 '';
104
105
106+ postFixup = ''
107+ # Get rid of retained dependencies on -dev packages, and remove
108+ # some $TMPDIR references to improve binary reproducibility.
109+ for i in $out/lib/python${majorVersion}/_sysconfigdata.py $out/lib/python${majorVersion}/config-${majorVersion}m/Makefile; do
110+ sed -i $i -e "s|-I/nix/store/[^ ']*||g" -e "s|-L/nix/store/[^ ']*||g" -e "s|$TMPDIR|/no-such-path|g"
111+ done
112+
113+ # FIXME: should regenerate this.
114+ rm $out/lib/python${majorVersion}/__pycache__/_sysconfigdata.cpython*
115+
116+ # tkinter goes in a separate output
117+ mkdir -p $tkinter/${sitePackages}
118+ mv $out/lib/${libPrefix}/lib-dynload/_tkinter* $tkinter/${sitePackages}/
119+ '';
120+
121+ outputs = ["out" "tkinter"];
122+
105 passthru = rec {
123 passthru = rec {
106− inherit libPrefix;
124+ inherit libPrefix sitePackages;
107 zlibSupport = zlib != null;
125 zlibSupport = zlib != null;
108 sqliteSupport = sqlite != null;
126 sqliteSupport = sqlite != null;
109 dbSupport = db != null;
127 dbSupport = db != null;
@@ -116,7 +134,6 @@ stdenv.mkDerivation {
116 isPy3 = true;
134 isPy3 = true;
117 isPy34 = true;
135 isPy34 = true;
118 is_py3k = true; # deprecated
136 is_py3k = true; # deprecated
119− sitePackages = "lib/${libPrefix}/site-packages";
120 interpreter = "${self}/bin/${executable}";
137 interpreter = "${self}/bin/${executable}";
121 };
138 };
122
139
pkgs/development/interpreters/python/cpython/3.5/default.nix+9−3
@@ -27,6 +27,7 @@ let
27 pythonVersion = majorVersion;
27 pythonVersion = majorVersion;
28 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
28 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
29 libPrefix = "python${majorVersion}";
29 libPrefix = "python${majorVersion}";
30+ sitePackages = "lib/${libPrefix}/site-packages";
30
31
31 buildInputs = filter (p: p != null) [
32 buildInputs = filter (p: p != null) [
32 zlib
33 zlib
@@ -102,16 +103,22 @@ stdenv.mkDerivation {
102 postFixup = ''
103 postFixup = ''
103 # Get rid of retained dependencies on -dev packages, and remove
104 # Get rid of retained dependencies on -dev packages, and remove
104 # some $TMPDIR references to improve binary reproducibility.
105 # some $TMPDIR references to improve binary reproducibility.
105− for i in $out/lib//python${majorVersion}/_sysconfigdata.py $out/lib/python${majorVersion}/config-${majorVersion}m/Makefile; do
106+ for i in $out/lib/python${majorVersion}/_sysconfigdata.py $out/lib/python${majorVersion}/config-${majorVersion}m/Makefile; do
106 sed -i $i -e "s|-I/nix/store/[^ ']*||g" -e "s|-L/nix/store/[^ ']*||g" -e "s|$TMPDIR|/no-such-path|g"
107 sed -i $i -e "s|-I/nix/store/[^ ']*||g" -e "s|-L/nix/store/[^ ']*||g" -e "s|$TMPDIR|/no-such-path|g"
107 done
108 done
108
109
109 # FIXME: should regenerate this.
110 # FIXME: should regenerate this.
110 rm $out/lib/python${majorVersion}/__pycache__/_sysconfigdata.cpython*
111 rm $out/lib/python${majorVersion}/__pycache__/_sysconfigdata.cpython*
112+
113+ # tkinter goes in a separate output
114+ mkdir -p $tkinter/${sitePackages}
115+ mv $out/lib/${libPrefix}/lib-dynload/_tkinter* $tkinter/${sitePackages}/
111 '';
116 '';
112
117
118+ outputs = ["out" "tkinter"];
119+
113 passthru = rec {
120 passthru = rec {
114− inherit libPrefix;
121+ inherit libPrefix sitePackages;
115 zlibSupport = zlib != null;
122 zlibSupport = zlib != null;
116 sqliteSupport = sqlite != null;
123 sqliteSupport = sqlite != null;
117 dbSupport = false;
124 dbSupport = false;
@@ -124,7 +131,6 @@ stdenv.mkDerivation {
124 isPy3 = true;
131 isPy3 = true;
125 isPy35 = true;
132 isPy35 = true;
126 is_py3k = true; # deprecated
133 is_py3k = true; # deprecated
127− sitePackages = "lib/${libPrefix}/site-packages";
128 interpreter = "${self}/bin/${executable}";
134 interpreter = "${self}/bin/${executable}";
129 };
135 };
130
136
pkgs/development/interpreters/python/cpython/3.6/default.nix+10−2
@@ -29,6 +29,7 @@ let
29 pythonVersion = majorVersion;
29 pythonVersion = majorVersion;
30 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
30 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
31 libPrefix = "python${majorVersion}";
31 libPrefix = "python${majorVersion}";
32+ sitePackages = "lib/${libPrefix}/site-packages";
32
33
33 buildInputs = filter (p: p != null) [
34 buildInputs = filter (p: p != null) [
34 glibc
35 glibc
@@ -103,8 +104,16 @@ stdenv.mkDerivation {
103 echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
104 echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
104 '';
105 '';
105
106
107+ postFixup = ''
108+ # tkinter goes in a separate output
109+ mkdir -p $tkinter/${sitePackages}
110+ mv $out/lib/${libPrefix}/lib-dynload/_tkinter* $tkinter/${sitePackages}/
111+ '';
112+
113+ outputs = ["out" "tkinter"];
114+
106 passthru = rec {
115 passthru = rec {
107− inherit libPrefix;
116+ inherit libPrefix sitePackages;
108 zlibSupport = zlib != null;
117 zlibSupport = zlib != null;
109 sqliteSupport = sqlite != null;
118 sqliteSupport = sqlite != null;
110 dbSupport = db != null;
119 dbSupport = db != null;
@@ -117,7 +126,6 @@ stdenv.mkDerivation {
117 isPy3 = true;
126 isPy3 = true;
118 isPy35 = true;
127 isPy35 = true;
119 is_py3k = true; # deprecated
128 is_py3k = true; # deprecated
120− sitePackages = "lib/${libPrefix}/site-packages";
121 interpreter = "${self}/bin/${executable}";
129 interpreter = "${self}/bin/${executable}";
122 };
130 };
123
131
pkgs/development/interpreters/python/pypy/2.7/default.nix+3−3
@@ -1,5 +1,5 @@
1{ stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2, pkgconfig, libffi
1{ stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2, pkgconfig, libffi
2−, sqlite, openssl, ncurses, pythonFull, expat, tcl, tk, xlibsWrapper, libX11
2+, sqlite, openssl, ncurses, python, expat, tcl, tk, xlibsWrapper, libX11
3, makeWrapper, callPackage, self, pypyPackages, gdbm, db }:
3, makeWrapper, callPackage, self, pypyPackages, gdbm, db }:
4
4
5assert zlibSupport -> zlib != null;
5assert zlibSupport -> zlib != null;
@@ -34,7 +34,7 @@ let
34 patch lib-python/2.7/test/test_pyexpat.py < '${expatch}'
34 patch lib-python/2.7/test/test_pyexpat.py < '${expatch}'
35 '';
35 '';
36
36
37− buildInputs = [ bzip2 openssl pkgconfig pythonFull libffi ncurses expat sqlite tk tcl xlibsWrapper libX11 makeWrapper gdbm db ]
37+ buildInputs = [ bzip2 openssl pkgconfig python python.tkinter libffi ncurses expat sqlite tk tcl xlibsWrapper libX11 makeWrapper gdbm db ]
38 ++ stdenv.lib.optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc
38 ++ stdenv.lib.optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc
39 ++ stdenv.lib.optional zlibSupport zlib;
39 ++ stdenv.lib.optional zlibSupport zlib;
40
40
@@ -62,7 +62,7 @@ let
62 '';
62 '';
63
63
64 buildPhase = ''
64 buildPhase = ''
65− ${pythonFull.interpreter} rpython/bin/rpython --make-jobs="$NIX_BUILD_CORES" -Ojit --batch pypy/goal/targetpypystandalone.py --withmod-_minimal_curses --withmod-unicodedata --withmod-thread --withmod-bz2 --withmod-_multiprocessing
65+ ${python.interpreter} rpython/bin/rpython --make-jobs="$NIX_BUILD_CORES" -Ojit --batch pypy/goal/targetpypystandalone.py --withmod-_minimal_curses --withmod-unicodedata --withmod-thread --withmod-bz2 --withmod-_multiprocessing
66 '';
66 '';
67
67
68 setupHook = ./setup-hook.sh;
68 setupHook = ./setup-hook.sh;
pkgs/development/python-modules/matplotlib/default.nix+1−1
@@ -40,7 +40,7 @@ buildPythonPackage rec {
40 ]
40 ]
41 ++ stdenv.lib.optional enableGtk2 pygtk
41 ++ stdenv.lib.optional enableGtk2 pygtk
42 ++ stdenv.lib.optionals enableGtk3 [ cairo pycairo gtk3 gobjectIntrospection pygobject3 ]
42 ++ stdenv.lib.optionals enableGtk3 [ cairo pycairo gtk3 gobjectIntrospection pygobject3 ]
43− ++ stdenv.lib.optionals enableTk [ tcl tk tkinter libX11 ];
43+ ++ stdenv.lib.optionals enableTk [ python.tkinter tcl tk tkinter libX11 ];
44
44
45 patches =
45 patches =
46 [ ./basedirlist.patch ] ++
46 [ ./basedirlist.patch ] ++
pkgs/servers/matrix-synapse/default.nix+1−1
@@ -26,7 +26,7 @@ in pythonPackages.buildPythonApplication rec {
26 blist canonicaljson daemonize dateutil frozendict pillow pybcrypt pyasn1
26 blist canonicaljson daemonize dateutil frozendict pillow pybcrypt pyasn1
27 pydenticon pymacaroons-pynacl pynacl pyopenssl pysaml2 pytz requests2
27 pydenticon pymacaroons-pynacl pynacl pyopenssl pysaml2 pytz requests2
28 service-identity signedjson systemd twisted ujson unpaddedbase64 pyyaml
28 service-identity signedjson systemd twisted ujson unpaddedbase64 pyyaml
29− matrix-angular-sdk bleach netaddr jinja2 psycopg2 python.modules.curses
29+ matrix-angular-sdk bleach netaddr jinja2 psycopg2
30 ldap3 psutil msgpack
30 ldap3 psutil msgpack
31 ];
31 ];
32
32
pkgs/servers/sabnzbd/default.nix+1−1
@@ -1,7 +1,7 @@
1{stdenv, fetchurl, python, par2cmdline, unzip, unrar, p7zip, makeWrapper}:
1{stdenv, fetchurl, python, par2cmdline, unzip, unrar, p7zip, makeWrapper}:
2
2
3let
3let
4− pythonEnv = python.withPackages(ps: with ps; [ pyopenssl python.modules.sqlite3 cheetah]);
4+ pythonEnv = python.withPackages(ps: with ps; [ pyopenssl cheetah]);
5 path = stdenv.lib.makeBinPath [ par2cmdline unrar unzip p7zip ];
5 path = stdenv.lib.makeBinPath [ par2cmdline unrar unzip p7zip ];
6in stdenv.mkDerivation rec {
6in stdenv.mkDerivation rec {
7 version = "1.1.0";
7 version = "1.1.0";
pkgs/tools/audio/beets/default.nix−2
@@ -92,8 +92,6 @@ in pythonPackages.buildPythonApplication rec {
92 pythonPackages.pathlib
92 pythonPackages.pathlib
93 pythonPackages.pyyaml
93 pythonPackages.pyyaml
94 pythonPackages.unidecode
94 pythonPackages.unidecode
95− pythonPackages.python.modules.sqlite3
96− pythonPackages.python.modules.readline
97 ] ++ optional enableAcoustid pythonPackages.pyacoustid
95 ] ++ optional enableAcoustid pythonPackages.pyacoustid
98 ++ optional (enableFetchart
96 ++ optional (enableFetchart
99 || enableEmbyupdate
97 || enableEmbyupdate
pkgs/tools/audio/mpdris2/default.nix+2−2
@@ -1,5 +1,5 @@
1{ stdenv, fetchurl, autoreconfHook, intltool
1{ stdenv, fetchurl, autoreconfHook, intltool
2−, pythonPackages, pythonFull
2+, pythonPackages
3}:
3}:
4
4
5stdenv.mkDerivation rec {
5stdenv.mkDerivation rec {
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
12 };
12 };
13
13
14 buildInputs = [ intltool autoreconfHook pythonPackages.wrapPython ];
14 buildInputs = [ intltool autoreconfHook pythonPackages.wrapPython ];
15− propagatedBuildInputs = with pythonPackages; [ pythonFull pygtk dbus-python ];
15+ propagatedBuildInputs = with pythonPackages; [ python pygtk dbus-python ];
16 pythonPath = with pythonPackages; [ mpd pygtk dbus-python notify ];
16 pythonPath = with pythonPackages; [ mpd pygtk dbus-python notify ];
17 postInstall = "wrapPythonPrograms";
17 postInstall = "wrapPythonPrograms";
18
18
pkgs/tools/filesystems/ceph/generic.nix−1
@@ -99,7 +99,6 @@ let
99 };
99 };
100
100
101 wrapArgs = "--set PYTHONPATH \"$(toPythonPath $lib)\""
101 wrapArgs = "--set PYTHONPATH \"$(toPythonPath $lib)\""
102− + " --prefix PYTHONPATH : \"$(toPythonPath ${python.modules.readline})\""
103 + " --prefix PYTHONPATH : \"$(toPythonPath ${pythonPackages.flask})\""
102 + " --prefix PYTHONPATH : \"$(toPythonPath ${pythonPackages.flask})\""
104 + " --set PATH \"$out/bin\"";
103 + " --set PATH \"$out/bin\"";
105in
104in
pkgs/tools/misc/openopc/default.nix+8−6
@@ -1,6 +1,8 @@
1−{ stdenv, fetchurl, pythonFull }:
1+{ stdenv, fetchurl, python }:
2
2
3+let
4+ pythonEnv = python.withPackages(ps: [ps.pyro3]);
3−stdenv.mkDerivation rec {
5+in stdenv.mkDerivation rec {
4 name = "openopc-${version}";
6 name = "openopc-${version}";
5 version = "1.2.0";
7 version = "1.2.0";
6
8
@@ -13,16 +15,16 @@ stdenv.mkDerivation rec {
13 installPhase = ''
15 installPhase = ''
14 mkdir -p "$out/bin"
16 mkdir -p "$out/bin"
15 mkdir -p "$out/share/doc/openopc"
17 mkdir -p "$out/share/doc/openopc"
16− mkdir -p "$out/${pythonFull.python.sitePackages}"
18+ mkdir -p "$out/${pythonEnv.python.sitePackages}"
17 mkdir -p "$out/libexec/opc"
19 mkdir -p "$out/libexec/opc"
18
20
19− cp src/OpenOPC.py "$out/${pythonFull.python.sitePackages}"
21+ cp src/OpenOPC.py "$out/${pythonEnv.python.sitePackages}"
20 cp src/opc.py "$out/libexec/opc/"
22 cp src/opc.py "$out/libexec/opc/"
21
23
22 cat > "$out/bin/opc" << __EOF__
24 cat > "$out/bin/opc" << __EOF__
23 #!${stdenv.shell}
25 #!${stdenv.shell}
24− export PYTHONPATH="$out/${pythonFull.python.sitePackages}"
26+ export PYTHONPATH="$out/${pythonEnv.python.sitePackages}"
25− exec ${pythonFull}/bin/${pythonFull.python.executable} "$out/libexec/opc/opc.py" "\$@"
27+ exec ${pythonEnv}/bin/${pythonEnv.python.executable} "$out/libexec/opc/opc.py" "\$@"
26 __EOF__
28 __EOF__
27 chmod a+x "$out/bin/opc"
29 chmod a+x "$out/bin/opc"
28
30
pkgs/tools/misc/venus/default.nix+1−1
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
28 doCheck = true;
28 doCheck = true;
29 checkPhase = "python runtests.py";
29 checkPhase = "python runtests.py";
30
30
31− buildInputs = [ python python.modules.bsddb libxslt
31+ buildInputs = [ python libxslt
32 libxml2 pythonPackages.genshi pythonPackages.lxml makeWrapper ];
32 libxml2 pythonPackages.genshi pythonPackages.lxml makeWrapper ];
33
33
34 installPhase = ''
34 installPhase = ''
pkgs/tools/security/fail2ban/default.nix+1−1
@@ -13,7 +13,7 @@ pythonPackages.buildPythonApplication {
13 sha256 = "1m8gqj35kwrn30rqwd488sgakaisz22xa5v9llvz6gwf4f7ps0a9";
13 sha256 = "1m8gqj35kwrn30rqwd488sgakaisz22xa5v9llvz6gwf4f7ps0a9";
14 };
14 };
15
15
16− propagatedBuildInputs = [ python.modules.sqlite3 gamin ]
16+ propagatedBuildInputs = [ gamin ]
17 ++ (stdenv.lib.optional stdenv.isLinux pythonPackages.systemd);
17 ++ (stdenv.lib.optional stdenv.isLinux pythonPackages.systemd);
18
18
19 preConfigure = ''
19 preConfigure = ''
pkgs/top-level/all-packages.nix+20−26
@@ -1661,6 +1661,7 @@ in
1661
1661
1662 fontforge = lowPrio (callPackage ../tools/misc/fontforge {
1662 fontforge = lowPrio (callPackage ../tools/misc/fontforge {
1663 inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
1663 inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
1664+ python = pythonSmall;
1664 });
1665 });
1665 fontforge-gtk = callPackage ../tools/misc/fontforge {
1666 fontforge-gtk = callPackage ../tools/misc/fontforge {
1666 withGTK = true;
1667 withGTK = true;
@@ -2154,7 +2155,7 @@ in
2154 ihaskell = callPackage ../development/tools/haskell/ihaskell/wrapper.nix {
2155 ihaskell = callPackage ../development/tools/haskell/ihaskell/wrapper.nix {
2155 inherit (haskellPackages) ihaskell ghcWithPackages;
2156 inherit (haskellPackages) ihaskell ghcWithPackages;
2156
2157
2157− ipython = pythonFull.buildEnv.override {
2158+ ipython = python.buildEnv.override {
2158 extraLibs = with pythonPackages; [ ipython ipykernel jupyter_client notebook ];
2159 extraLibs = with pythonPackages; [ ipython ipykernel jupyter_client notebook ];
2159 };
2160 };
2160
2161
@@ -2983,11 +2984,7 @@ in
2983
2984
2984 openobex = callPackage ../tools/bluetooth/openobex { };
2985 openobex = callPackage ../tools/bluetooth/openobex { };
2985
2986
2986− openopc = callPackage ../tools/misc/openopc {
2987+ openopc = callPackage ../tools/misc/openopc { };
2987− pythonFull = python27.buildEnv.override {
2988− extraLibs = [ python27Packages.pyro3 ];
2989− };
2990− };
2991
2988
2992 openresolv = callPackage ../tools/networking/openresolv { };
2989 openresolv = callPackage ../tools/networking/openresolv { };
2993
2990
@@ -5504,6 +5501,11 @@ in
5504 python2 = python27;
5501 python2 = python27;
5505 python3 = python35;
5502 python3 = python35;
5506
5503
5504+ # Python uses multiple outputs, and by default `python` is without X11/tkinter.
5505+ # This package only exists to prevent an infinite recursion and should only be used
5506+ # for packages Python itself depends on.
5507+ pythonSmall = python.override {x11Support = false;};
5508+
5507 # pythonPackages further below, but assigned here because they need to be in sync
5509 # pythonPackages further below, but assigned here because they need to be in sync
5508 pythonPackages = python2Packages;
5510 pythonPackages = python2Packages;
5509 python2Packages = python27Packages;
5511 python2Packages = python27Packages;
@@ -5539,17 +5541,6 @@ in
5539 self = pypy27;
5541 self = pypy27;
5540 };
5542 };
5541
5543
5542− pythonFull = python2Full;
5543− python2Full = python27Full;
5544− python26Full = python26.override {
5545− includeModules = true;
5546− self = python26Full;
5547− };
5548− python27Full = python27.override {
5549− includeModules = true;
5550− self = python27Full;
5551− };
5552−
5553 python2nix = callPackage ../tools/package-management/python2nix { };
5544 python2nix = callPackage ../tools/package-management/python2nix { };
5554
5545
5555 pythonDocs = recurseIntoAttrs (callPackage ../development/interpreters/python/cpython/docs {});
5546 pythonDocs = recurseIntoAttrs (callPackage ../development/interpreters/python/cpython/docs {});
@@ -7158,7 +7149,9 @@ in
7158
7149
7159 gtkmathview = callPackage ../development/libraries/gtkmathview { };
7150 gtkmathview = callPackage ../development/libraries/gtkmathview { };
7160
7151
7161− glib = callPackage ../development/libraries/glib { };
7152+ glib = callPackage ../development/libraries/glib {
7153+ python = pythonSmall;
7154+ };
7162 glib-tested = glib.override { # checked version separate to break cycles
7155 glib-tested = glib.override { # checked version separate to break cycles
7163 doCheck = true;
7156 doCheck = true;
7164 libffi = libffi.override { doCheck = true; };
7157 libffi = libffi.override { doCheck = true; };
@@ -8279,7 +8272,9 @@ in
8279
8272
8280 libxmi = callPackage ../development/libraries/libxmi { };
8273 libxmi = callPackage ../development/libraries/libxmi { };
8281
8274
8282− libxml2 = callPackage ../development/libraries/libxml2 { };
8275+ libxml2 = callPackage ../development/libraries/libxml2 {
8276+ python = pythonSmall;
8277+ };
8283 libxml2Python = pkgs.buildEnv { # slightly hacky
8278 libxml2Python = pkgs.buildEnv { # slightly hacky
8284 name = "libxml2+py-${self.libxml2.version}";
8279 name = "libxml2+py-${self.libxml2.version}";
8285 paths = with libxml2; [ dev bin py ];
8280 paths = with libxml2; [ dev bin py ];
@@ -10368,11 +10363,12 @@ in
10368 inherit clangStdenv fetchurl fetchgit fetchpatch stdenv pkgconfig intltool freetype fontconfig
10363 inherit clangStdenv fetchurl fetchgit fetchpatch stdenv pkgconfig intltool freetype fontconfig
10369 libxslt expat libpng zlib perl mesa_drivers spice_protocol libunwind
10364 libxslt expat libpng zlib perl mesa_drivers spice_protocol libunwind
10370 dbus libuuid openssl gperf m4 libevdev tradcpp libinput mcpp makeWrapper autoreconfHook
10365 dbus libuuid openssl gperf m4 libevdev tradcpp libinput mcpp makeWrapper autoreconfHook
10371− autoconf automake libtool xmlto asciidoc flex bison python mtdev pixman
10366+ autoconf automake libtool xmlto asciidoc flex bison mtdev pixman
10372 cairo epoxy;
10367 cairo epoxy;
10373 inherit (darwin) apple_sdk cf-private libobjc;
10368 inherit (darwin) apple_sdk cf-private libobjc;
10374 bootstrap_cmds = if stdenv.isDarwin then darwin.bootstrap_cmds else null;
10369 bootstrap_cmds = if stdenv.isDarwin then darwin.bootstrap_cmds else null;
10375 mesa = mesa_noglu;
10370 mesa = mesa_noglu;
10371+ python = pythonSmall;
10376 udev = if stdenv.isLinux then udev else null;
10372 udev = if stdenv.isLinux then udev else null;
10377 libdrm = if stdenv.isLinux then libdrm else null;
10373 libdrm = if stdenv.isLinux then libdrm else null;
10378 fglrxCompat = config.xorg.fglrxCompat or false; # `config` because we have no `xorg.override`
10374 fglrxCompat = config.xorg.fglrxCompat or false; # `config` because we have no `xorg.override`
@@ -10554,11 +10550,7 @@ in
10554
10550
10555 drbd = callPackage ../os-specific/linux/drbd { };
10551 drbd = callPackage ../os-specific/linux/drbd { };
10556
10552
10557− dstat = callPackage ../os-specific/linux/dstat {
10553+ dstat = callPackage ../os-specific/linux/dstat { };
10558− # pythonFull includes the "curses" standard library module, for pretty
10559− # dstat color output
10560− python = pythonFull;
10561− };
10562
10554
10563 libossp_uuid = callPackage ../development/libraries/libossp-uuid { };
10555 libossp_uuid = callPackage ../development/libraries/libossp-uuid { };
10564
10556
@@ -11528,7 +11520,9 @@ in
11528
11520
11529 bgnet = callPackage ../data/documentation/bgnet { };
11521 bgnet = callPackage ../data/documentation/bgnet { };
11530
11522
11531− cacert = callPackage ../data/misc/cacert { };
11523+ cacert = callPackage ../data/misc/cacert {
11524+ python = pythonSmall;
11525+ };
11532
11526
11533 caladea = callPackage ../data/fonts/caladea {};
11527 caladea = callPackage ../data/fonts/caladea {};
11534
11528
pkgs/top-level/python-packages.nix+45−49
@@ -27,15 +27,7 @@ let
27
27
28 buildPythonApplication = args: buildPythonPackage ({namePrefix="";} // args );
28 buildPythonApplication = args: buildPythonPackage ({namePrefix="";} // args );
29
29
30− modules = python.modules or {
30+in {
31− readline = null;
32− sqlite3 = null;
33− curses = null;
34− curses_panel = null;
35− crypt = null;
36− };
37−
38−in modules // {
39
31
40 inherit python bootstrapped-pip isPy26 isPy27 isPy33 isPy34 isPy35 isPy36 isPyPy isPy3k mkPythonDerivation buildPythonPackage buildPythonApplication;
32 inherit python bootstrapped-pip isPy26 isPy27 isPy33 isPy34 isPy35 isPy36 isPyPy isPy3k mkPythonDerivation buildPythonPackage buildPythonApplication;
41
33
@@ -2036,7 +2028,7 @@ in modules // {
2036 sha256 = "0grid93yz6i6jb2zggrqncp5awdf7qi88j5y2k7dq0k9r6b8zydw";
2028 sha256 = "0grid93yz6i6jb2zggrqncp5awdf7qi88j5y2k7dq0k9r6b8zydw";
2037 };
2029 };
2038
2030
2039− propagatedBuildInputs = with stdenv.lib; with pkgs; [ modules.curses zlib xz ncompress gzip bzip2 gnutar p7zip cabextract lzma self.pycrypto ]
2031+ propagatedBuildInputs = with stdenv.lib; with pkgs; [ zlib xz ncompress gzip bzip2 gnutar p7zip cabextract lzma self.pycrypto ]
2040 ++ optional visualizationSupport pyqtgraph;
2032 ++ optional visualizationSupport pyqtgraph;
2041
2033
2042 meta = with stdenv.lib; {
2034 meta = with stdenv.lib; {
@@ -2798,7 +2790,7 @@ in modules // {
2798 sha256 = "1ilf58qq7sazmcgg4f1wswbhcn2gb8qbbrpgm6gf0j2lbm60gabl";
2790 sha256 = "1ilf58qq7sazmcgg4f1wswbhcn2gb8qbbrpgm6gf0j2lbm60gabl";
2799 };
2791 };
2800
2792
2801− propagatedBuildInputs = with self; [ modules.curses pygments ];
2793+ propagatedBuildInputs = with self; [ pygments ];
2802 doCheck = false;
2794 doCheck = false;
2803
2795
2804 meta = {
2796 meta = {
@@ -3984,7 +3976,6 @@ in modules // {
3984
3976
3985 propagatedBuildInputs = with self; [
3977 propagatedBuildInputs = with self; [
3986 pyparsing
3978 pyparsing
3987− modules.readline
3988 urwid
3979 urwid
3989 ];
3980 ];
3990
3981
@@ -4200,7 +4191,7 @@ in modules // {
4200 name = "cryptacular-1.4.1";
4191 name = "cryptacular-1.4.1";
4201
4192
4202 buildInputs = with self; [ coverage nose ];
4193 buildInputs = with self; [ coverage nose ];
4203− propagatedBuildInputs = with self; [ pbkdf2 modules.crypt ];
4194+ propagatedBuildInputs = with self; [ pbkdf2 ];
4204
4195
4205 src = pkgs.fetchurl {
4196 src = pkgs.fetchurl {
4206 url = "mirror://pypi/c/cryptacular/${name}.tar.gz";
4197 url = "mirror://pypi/c/cryptacular/${name}.tar.gz";
@@ -4228,7 +4219,7 @@ in modules // {
4228 buildInputs = [ pkgs.openssl self.pretend self.cryptography_vectors
4219 buildInputs = [ pkgs.openssl self.pretend self.cryptography_vectors
4229 self.iso8601 self.pyasn1 self.pytest_29 self.py self.hypothesis self.pytz ]
4220 self.iso8601 self.pyasn1 self.pytest_29 self.py self.hypothesis self.pytz ]
4230 ++ optional stdenv.isDarwin pkgs.darwin.apple_sdk.frameworks.Security;
4221 ++ optional stdenv.isDarwin pkgs.darwin.apple_sdk.frameworks.Security;
4231− propagatedBuildInputs = with self; [ six idna ipaddress pyasn1 cffi pyasn1-modules modules.sqlite3 pytz ]
4222+ propagatedBuildInputs = with self; [ six idna ipaddress pyasn1 cffi pyasn1-modules pytz ]
4232 ++ optional (pythonOlder "3.4") self.enum34;
4223 ++ optional (pythonOlder "3.4") self.enum34;
4233
4224
4234 # IOKit's dependencies are inconsistent between OSX versions, so this is the best we
4225 # IOKit's dependencies are inconsistent between OSX versions, so this is the best we
@@ -5682,7 +5673,7 @@ in modules // {
5682 make -f Makefile.prep synctus/ddar_pb2.py
5673 make -f Makefile.prep synctus/ddar_pb2.py
5683 '';
5674 '';
5684
5675
5685− propagatedBuildInputs = with self; [ protobuf modules.sqlite3 ];
5676+ propagatedBuildInputs = with self; [ protobuf ];
5686
5677
5687 meta = {
5678 meta = {
5688 description = "Unix de-duplicating archiver";
5679 description = "Unix de-duplicating archiver";
@@ -6624,7 +6615,7 @@ in modules // {
6624 sha256 = "105swvzshgn3g6bjwk67xd8pslnhpxwa63mdsw6cl4c7cjp2blx9";
6615 sha256 = "105swvzshgn3g6bjwk67xd8pslnhpxwa63mdsw6cl4c7cjp2blx9";
6625 };
6616 };
6626
6617
6627− propagatedBuildInputs = with self; [ python_fedora modules.sqlite3 pyopenssl ];
6618+ propagatedBuildInputs = with self; [ python_fedora pyopenssl ];
6628 postInstall = "mv $out/bin/fedpkg $out/bin/fedora-cert-fedpkg";
6619 postInstall = "mv $out/bin/fedpkg $out/bin/fedora-cert-fedpkg";
6629 doCheck = false;
6620 doCheck = false;
6630 };
6621 };
@@ -7467,7 +7458,6 @@ in modules // {
7467 pyyaml
7458 pyyaml
7468 redis
7459 redis
7469 six
7460 six
7470− modules.sqlite3
7471 pkgs.zlib
7461 pkgs.zlib
7472 ];
7462 ];
7473
7463
@@ -7861,8 +7851,7 @@ in modules // {
7861 sha256 = "1dnmnkc21zdfaypskbpvkwl0wpkpn0nagj1fc338w64mbxrk8ny7";
7851 sha256 = "1dnmnkc21zdfaypskbpvkwl0wpkpn0nagj1fc338w64mbxrk8ny7";
7862 };
7852 };
7863
7853
7864− propagatedBuildInputs = with self;
7854+ propagatedBuildInputs = with self; [
7865− [
7866 apipkg
7855 apipkg
7867 bottle
7856 bottle
7868 gevent
7857 gevent
@@ -7877,7 +7866,7 @@ in modules // {
7877 simplejson
7866 simplejson
7878 sqlite3dbm
7867 sqlite3dbm
7879 timelib
7868 timelib
7880− ] ++ optionals (!isPy3k) [ modules.sqlite3 ];
7869+ ];
7881
7870
7882 meta = {
7871 meta = {
7883 description = "Library for parsing MediaWiki articles and converting them to different output formats";
7872 description = "Library for parsing MediaWiki articles and converting them to different output formats";
@@ -9502,7 +9491,7 @@ in modules // {
9502 };
9491 };
9503
9492
9504 propagatedBuildInputs = with self; [
9493 propagatedBuildInputs = with self; [
9505− pyGtkGlade pkgs.libtorrentRasterbar_1_0 twisted Mako chardet pyxdg self.pyopenssl modules.curses service-identity
9494+ pyGtkGlade pkgs.libtorrentRasterbar_1_0 twisted Mako chardet pyxdg self.pyopenssl service-identity
9506 ];
9495 ];
9507
9496
9508 nativeBuildInputs = [ pkgs.intltool ];
9497 nativeBuildInputs = [ pkgs.intltool ];
@@ -11716,7 +11705,7 @@ in modules // {
11716 doCheck = false;
11705 doCheck = false;
11717
11706
11718 buildInputs = with self; [ unittest2 ];
11707 buildInputs = with self; [ unittest2 ];
11719− propagatedBuildInputs = with self; [ modules.curses modules.curses_panel psutil setuptools bottle batinfo pkgs.hddtemp pysnmp ];
11708+ propagatedBuildInputs = with self; [ psutil setuptools bottle batinfo pkgs.hddtemp pysnmp ];
11720
11709
11721 preConfigure = ''
11710 preConfigure = ''
11722 sed -i 's/data_files\.append((conf_path/data_files.append(("etc\/glances"/' setup.py;
11711 sed -i 's/data_files\.append((conf_path/data_files.append(("etc\/glances"/' setup.py;
@@ -12158,7 +12147,7 @@ in modules // {
12158 };
12147 };
12159
12148
12160 buildInputs = with self; [ flake8 pytest flaky ];
12149 buildInputs = with self; [ flake8 pytest flaky ];
12161− propagatedBuildInputs = with self; ([ uncompyle6 ] ++ optionals isPy27 [ enum34 modules.sqlite3 ]);
12150+ propagatedBuildInputs = with self; ([ uncompyle6 ] ++ optionals isPy27 [ enum34 ]);
12162
12151
12163 # https://github.com/DRMacIver/hypothesis/issues/300
12152 # https://github.com/DRMacIver/hypothesis/issues/300
12164 checkPhase = ''
12153 checkPhase = ''
@@ -12839,7 +12828,7 @@ in modules // {
12839 };
12828 };
12840
12829
12841 propagatedBuildInputs = with self; [
12830 propagatedBuildInputs = with self; [
12842− pytz six tzlocal keyring modules.readline argparse dateutil_1_5
12831+ pytz six tzlocal keyring argparse dateutil_1_5
12843 parsedatetime
12832 parsedatetime
12844 ];
12833 ];
12845
12834
@@ -13248,7 +13237,7 @@ in modules // {
13248 sed -i 's/version=version/version="${version}"/' setup.py
13237 sed -i 's/version=version/version="${version}"/' setup.py
13249 '';
13238 '';
13250 buildInputs = with self; [ pkgs.git ];
13239 buildInputs = with self; [ pkgs.git ];
13251− propagatedBuildInputs = with self; [ modules.sqlite3 ];
13240+ propagatedBuildInputs = with self; [ ];
13252
13241
13253 doCheck = false;
13242 doCheck = false;
13254
13243
@@ -13848,7 +13837,7 @@ in modules // {
13848 buildInputs = with self; [ pyflakes pep8 ];
13837 buildInputs = with self; [ pyflakes pep8 ];
13849 propagatedBuildInputs = with self; [
13838 propagatedBuildInputs = with self; [
13850 django_1_6 filebrowser_safe grappelli_safe bleach tzlocal beautifulsoup4
13839 django_1_6 filebrowser_safe grappelli_safe bleach tzlocal beautifulsoup4
13851− requests2 requests_oauthlib future pillow modules.sqlite3
13840+ requests2 requests_oauthlib future pillow
13852 ];
13841 ];
13853
13842
13854 # Tests Fail Due to Syntax Warning, Fixed for v3.1.11+
13843 # Tests Fail Due to Syntax Warning, Fixed for v3.1.11+
@@ -13987,7 +13976,7 @@ in modules // {
13987
13976
13988 buildInputs = with self; [
13977 buildInputs = with self; [
13989 pkgs.libjpeg pkgs.freetype pkgs.zlib pkgs.glibcLocales
13978 pkgs.libjpeg pkgs.freetype pkgs.zlib pkgs.glibcLocales
13990− pillow twitter pyfiglet requests2 arrow dateutil modules.readline pysocks
13979+ pillow twitter pyfiglet requests2 arrow dateutil pysocks
13991 pocket
13980 pocket
13992 ];
13981 ];
13993
13982
@@ -14303,7 +14292,7 @@ in modules // {
14303
14292
14304 LC_ALL="en_US.UTF-8";
14293 LC_ALL="en_US.UTF-8";
14305
14294
14306− propagatedBuildInputs = with self; [ argparse jinja2 six modules.readline ] ++
14295+ propagatedBuildInputs = with self; [ argparse jinja2 six ] ++
14307 (optionals isPy26 [ importlib ordereddict ]);
14296 (optionals isPy26 [ importlib ordereddict ]);
14308
14297
14309 meta = {
14298 meta = {
@@ -15021,7 +15010,6 @@ in modules // {
15021 propagatedBuildInputs = with self; [
15010 propagatedBuildInputs = with self; [
15022 numpy
15011 numpy
15023 nose
15012 nose
15024− modules.sqlite3
15025 ];
15013 ];
15026
15014
15027 # Failing tests
15015 # Failing tests
@@ -17367,7 +17355,6 @@ in modules // {
17367 sqlalchemy
17355 sqlalchemy
17368 lxml
17356 lxml
17369 html5lib
17357 html5lib
17370− modules.sqlite3
17371 beautifulsoup4
17358 beautifulsoup4
17372 openpyxl
17359 openpyxl
17373 tables
17360 tables
@@ -17885,7 +17872,7 @@ in modules // {
17885 sha256 = "169s5mhw1s60qbsd6pkf9bb2x6wfgx8hn8nw9d4qgc68qnnpp2cj";
17872 sha256 = "169s5mhw1s60qbsd6pkf9bb2x6wfgx8hn8nw9d4qgc68qnnpp2cj";
17886 };
17873 };
17887
17874
17888− propagatedBuildInputs = with self; [ modules.curses ];
17875+ propagatedBuildInputs = with self; [ ];
17889
17876
17890 meta = {
17877 meta = {
17891 homepage = https://github.com/mooz/percol;
17878 homepage = https://github.com/mooz/percol;
@@ -20206,7 +20193,7 @@ in modules // {
20206 sha256 = "0jgyhkkq36wn36rymn4jiyqh2vdslmradq4a2mjkxfbk2cz6wpi5";
20193 sha256 = "0jgyhkkq36wn36rymn4jiyqh2vdslmradq4a2mjkxfbk2cz6wpi5";
20207 };
20194 };
20208
20195
20209− buildInputs = with self; [ six pytest hypothesis ] ++ optional (!isPy3k) modules.sqlite3;
20196+ buildInputs = with self; [ six pytest hypothesis ];
20210
20197
20211 checkPhase = ''
20198 checkPhase = ''
20212 py.test
20199 py.test
@@ -21204,7 +21191,7 @@ in modules // {
21204 };
21191 };
21205
21192
21206 buildInputs = with self; [ nose ];
21193 buildInputs = with self; [ nose ];
21207− propagatedBuildInputs = with self; [ modules.sqlite3 six ];
21194+ propagatedBuildInputs = with self; [ six ];
21208
21195
21209 checkPhase = "nosetests";
21196 checkPhase = "nosetests";
21210
21197
@@ -21747,7 +21734,7 @@ in modules // {
21747
21734
21748 propagatedBuildInputs = with self;
21735 propagatedBuildInputs = with self;
21749 [ django_1_6 recaptcha_client pytz memcached dateutil_1_5 paramiko flup
21736 [ django_1_6 recaptcha_client pytz memcached dateutil_1_5 paramiko flup
21750− pygments djblets django_evolution pycrypto modules.sqlite3 pysvn pillow
21737+ pygments djblets django_evolution pycrypto pysvn pillow
21751 psycopg2 django-haystack python_mimeparse markdown django-multiselectfield
21738 psycopg2 django-haystack python_mimeparse markdown django-multiselectfield
21752 ];
21739 ];
21753 };
21740 };
@@ -21915,7 +21902,7 @@ in modules // {
21915 sha256 = "1lf5f4x80f7d983bmkx12sxcizzii21kghs8kf63a1mj022a5x5j";
21902 sha256 = "1lf5f4x80f7d983bmkx12sxcizzii21kghs8kf63a1mj022a5x5j";
21916 };
21903 };
21917
21904
21918− propagatedBuildInputs = with self; [ pygments wxPython modules.sqlite3 ];
21905+ propagatedBuildInputs = with self; [ pygments wxPython ];
21919
21906
21920 # ride_postinstall.py checks that needed deps are installed and creates a
21907 # ride_postinstall.py checks that needed deps are installed and creates a
21921 # desktop shortcut. We don't really need it and it clutters up bin/ so
21908 # desktop shortcut. We don't really need it and it clutters up bin/ so
@@ -22345,8 +22332,6 @@ in modules // {
22345 sha256 = "1bqmp0xglkndrqgmybpwmzkv462mir8qlkfwsxwbvvzh9li3ndn5";
22332 sha256 = "1bqmp0xglkndrqgmybpwmzkv462mir8qlkfwsxwbvvzh9li3ndn5";
22346 };
22333 };
22347
22334
22348− propagatedBuildInputs = [ modules.readline ];
22349−
22350 meta = {
22335 meta = {
22351 description = "Powerful interactive network packet manipulation program";
22336 description = "Powerful interactive network packet manipulation program";
22352 homepage = http://www.secdev.org/projects/scapy/;
22337 homepage = http://www.secdev.org/projects/scapy/;
@@ -22815,8 +22800,6 @@ in modules // {
22815 sha256 = "4721607e0b817b89efdba7e79cab881a03164b94777f4cf796ad5dd59a7612c5";
22800 sha256 = "4721607e0b817b89efdba7e79cab881a03164b94777f4cf796ad5dd59a7612c5";
22816 };
22801 };
22817
22802
22818− buildInputs = with self; [ modules.sqlite3 ];
22819−
22820 meta = {
22803 meta = {
22821 description = "sqlite-backed dictionary";
22804 description = "sqlite-backed dictionary";
22822 homepage = "http://github.com/Yelp/sqlite3dbm";
22805 homepage = "http://github.com/Yelp/sqlite3dbm";
@@ -22849,8 +22832,6 @@ in modules // {
22849 sha256 = "0g8sjky8anrmcisc697b5qndp88qmay35kng9sz9x46wd3agm9pa";
22832 sha256 = "0g8sjky8anrmcisc697b5qndp88qmay35kng9sz9x46wd3agm9pa";
22850 };
22833 };
22851
22834
22852− propagatedBuildInputs = with self; [ modules.sqlite3 ];
22853−
22854 meta = with pkgs.stdenv.lib; {
22835 meta = with pkgs.stdenv.lib; {
22855 homepage = "http://sqlmap.org";
22836 homepage = "http://sqlmap.org";
22856 license = licenses.gpl2;
22837 license = licenses.gpl2;
@@ -23311,7 +23292,7 @@ in modules // {
23311 # 4 failing tests, 2to3
23292 # 4 failing tests, 2to3
23312 doCheck = false;
23293 doCheck = false;
23313
23294
23314− propagatedBuildInputs = with self; [ modules.curses ];
23295+ propagatedBuildInputs = with self; [ ];
23315
23296
23316 meta = {
23297 meta = {
23317 maintainers = with maintainers; [ domenkozar ];
23298 maintainers = with maintainers; [ domenkozar ];
@@ -23907,7 +23888,6 @@ in modules // {
23907
23888
23908 buildInputs = with self; [ nose mock ]
23889 buildInputs = with self; [ nose mock ]
23909 ++ stdenv.lib.optional doCheck pysqlite;
23890 ++ stdenv.lib.optional doCheck pysqlite;
23910− propagatedBuildInputs = with self; [ modules.sqlite3 ];
23911
23891
23912 checkPhase = ''
23892 checkPhase = ''
23913 ${python.executable} sqla_nose.py
23893 ${python.executable} sqla_nose.py
@@ -23933,7 +23913,6 @@ in modules // {
23933
23913
23934 buildInputs = with self; [ pytest mock pytest_xdist ]
23914 buildInputs = with self; [ pytest mock pytest_xdist ]
23935 ++ stdenv.lib.optional (!isPy3k) pysqlite;
23915 ++ stdenv.lib.optional (!isPy3k) pysqlite;
23936− propagatedBuildInputs = with self; [ modules.sqlite3 ];
23937
23916
23938 # Test-only dependency pysqlite doesn't build on Python 3. This isn't an
23917 # Test-only dependency pysqlite doesn't build on Python 3. This isn't an
23939 # acceptable reason to make all dependents unavailable on Python 3 as well
23918 # acceptable reason to make all dependents unavailable on Python 3 as well
@@ -24698,6 +24677,23 @@ in modules // {
24698 };
24677 };
24699 };
24678 };
24700
24679
24680+ # Tkinter/tkinter is part of the Python standard library.
24681+ # To reduce closure size its put in a separate output, `python.tkinter`.
24682+ # This alias was added to make this output work like any other Python package.
24683+ tkinter = mkPythonDerivation rec {
24684+ name = "tkinter-${python.version}";
24685+ src = python.tkinter;
24686+
24687+ disabled = isPy26 || isPyPy;
24688+
24689+ installPhase = ''
24690+ mkdir -p $out
24691+ cp -R ${python.tkinter}/* $out
24692+ '';
24693+
24694+ inherit (python) meta;
24695+ };
24696+
24701 tlslite = buildPythonPackage rec {
24697 tlslite = buildPythonPackage rec {
24702 name = "tlslite-${version}";
24698 name = "tlslite-${version}";
24703 version = "0.4.8";
24699 version = "0.4.8";
@@ -24862,7 +24858,7 @@ in modules // {
24862
24858
24863 PYTHON_EGG_CACHE = "`pwd`/.egg-cache";
24859 PYTHON_EGG_CACHE = "`pwd`/.egg-cache";
24864
24860
24865− propagatedBuildInputs = with self; [ genshi setuptools modules.sqlite3 ];
24861+ propagatedBuildInputs = with self; [ genshi ];
24866
24862
24867 meta = {
24863 meta = {
24868 description = "Enhanced wiki and issue tracking system for software development projects";
24864 description = "Enhanced wiki and issue tracking system for software development projects";
@@ -25447,7 +25443,7 @@ in modules // {
25447
25443
25448 patches = [ ../development/python-modules/virtualenv-change-prefix.patch ];
25444 patches = [ ../development/python-modules/virtualenv-change-prefix.patch ];
25449
25445
25450− propagatedBuildInputs = with self; [ modules.readline modules.sqlite3 modules.curses ];
25446+ propagatedBuildInputs = with self; [ ];
25451
25447
25452 # Tarball doesn't contain tests
25448 # Tarball doesn't contain tests
25453 doCheck = false;
25449 doCheck = false;
@@ -25868,7 +25864,7 @@ in modules // {
25868 sha256 = "e03dd26ea694b877a2b3b7b4dcca8e79420e7f346abab34292bff43d992a8cc5";
25864 sha256 = "e03dd26ea694b877a2b3b7b4dcca8e79420e7f346abab34292bff43d992a8cc5";
25869 };
25865 };
25870
25866
25871− buildInputs = with self; [ pytest modules.sqlite3 ];
25867+ buildInputs = with self; [ pytest ];
25872 propagatedBuildInputs = with self; [ feedparser pytz lxml praw pyenchant pygeoip backports_ssl_match_hostname ];
25868 propagatedBuildInputs = with self; [ feedparser pytz lxml praw pyenchant pygeoip backports_ssl_match_hostname ];
25873 checkPhase = ''
25869 checkPhase = ''
25874 py.test test
25870 py.test test
@@ -26910,7 +26906,7 @@ in modules // {
26910 };
26906 };
26911
26907
26912 buildInputs = with self; [ unittest2 nose mock ];
26908 buildInputs = with self; [ unittest2 nose mock ];
26913− propagatedBuildInputs = with self; [ modules.curses libarchive ];
26909+ propagatedBuildInputs = with self; [ libarchive ];
26914
26910
26915 # tests are still failing
26911 # tests are still failing
26916 doCheck = false;
26912 doCheck = false;
@@ -27452,7 +27448,7 @@ in modules // {
27452 sha256 = "472a4403fd5b5364939aee10e78f171b1489e5f6bfe6f150ed9cae8476410114";
27448 sha256 = "472a4403fd5b5364939aee10e78f171b1489e5f6bfe6f150ed9cae8476410114";
27453 };
27449 };
27454
27450
27455− propagatedBuildInputs = with self; [ django_1_5 django_tagging modules.sqlite3 whisper pycairo ldap memcached ];
27451+ propagatedBuildInputs = with self; [ django_1_5 django_tagging whisper pycairo ldap memcached ];
27456
27452
27457 postInstall = ''
27453 postInstall = ''
27458 wrapProgram $out/bin/run-graphite-devel-server.py \
27454 wrapProgram $out/bin/run-graphite-devel-server.py \
pkgs/top-level/release-small.nix−1
@@ -130,7 +130,6 @@ with import ./release-lib.nix { inherit supportedSystems; };
130 portmap = linux;
130 portmap = linux;
131 procps = linux;
131 procps = linux;
132 python = allBut cygwin;
132 python = allBut cygwin;
133− pythonFull = linux;
134 readline = all;
133 readline = all;
135 rlwrap = all;
134 rlwrap = all;
136 rpm = linux;
135 rpm = linux;