git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19309 from FRidh/outputs

Python: use separate output for tkinter

commitcffdffe1f679a4beaf99355d26d38b23879474d7 authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateThu 13 Oct 2016, 10:40 (10 years ago) parent727fc251e544b2
28 files changed+172−249
doc/languages-frameworks/python.md+5−20 nixos/modules/services/web-servers/apache-httpd/trac.nix−1 pkgs/applications/misc/loxodo/default.nix+1−1 pkgs/applications/misc/ranger/default.nix+1−1 pkgs/applications/misc/roxterm/default.nix+3−3 pkgs/applications/misc/rtv/default.nix−1 pkgs/applications/networking/mailreaders/mailpile/default.nix+1−1 pkgs/applications/version-management/bazaar/default.nix−3 pkgs/applications/video/kodi/default.nix+3−3 pkgs/development/compilers/edk2/default.nix+3−3 pkgs/development/interpreters/python/cpython/2.7/default.nix+15−108 pkgs/development/interpreters/python/cpython/3.3/default.nix+19−2 pkgs/development/interpreters/python/cpython/3.4/default.nix+19−2 pkgs/development/interpreters/python/cpython/3.5/default.nix+9−3 pkgs/development/interpreters/python/cpython/3.6/default.nix+10−2 pkgs/development/interpreters/python/pypy/2.7/default.nix+3−3 pkgs/development/python-modules/matplotlib/default.nix+1−1 pkgs/servers/matrix-synapse/default.nix+1−1 pkgs/servers/sabnzbd/default.nix+1−1 pkgs/tools/audio/beets/default.nix−2 pkgs/tools/audio/mpdris2/default.nix+2−2 pkgs/tools/filesystems/ceph/generic.nix−1 pkgs/tools/misc/openopc/default.nix+8−6 pkgs/tools/misc/venus/default.nix+1−1 pkgs/tools/security/fail2ban/default.nix+1−1 pkgs/top-level/all-packages.nix+20−26 pkgs/top-level/python-packages.nix+45−49 pkgs/top-level/release-small.nix−1
doc/languages-frameworks/python.md+5−20
@@ -416,29 +416,14 @@ aliases `python` and `python3` correspond to respectively `python27` and
416416`python35`. The Nix expressions for the interpreters can be found in
417417`pkgs/development/interpreters/python`.
418418
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−
438419All packages depending on any Python interpreter get appended
439420`out/{python.sitePackages}` to `$PYTHONPATH` if such directory
440421exists.
441422
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+
442427#### Attributes on interpreters packages
443428
444429Each interpreter has the following attributes:
@@ -448,7 +433,7 @@ Each interpreter has the following attributes:
448433- `buildEnv`. Function to build python interpreter environments with extra packages bundled together. See section *python.buildEnv function* for usage and documentation.
449434- `withPackages`. Simpler interface to `buildEnv`. See section *python.withPackages function* for usage and documentation.
450435- `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`.
452437
453438### Building packages and applications
454439
nixos/modules/services/web-servers/apache-httpd/trac.nix−1
@@ -102,7 +102,6 @@ in
102102 pkgs.setuptools
103103 pkgs.pythonPackages.genshi
104104 pkgs.pythonPackages.psycopg2
105− pkgs.python.modules.sqlite3
106105 subversion
107106 ];
108107 };
pkgs/applications/misc/loxodo/default.nix+1−1
@@ -12,7 +12,7 @@ py.buildPythonApplication rec {
1212 sha256 = "1cg0dfcv57ps54f1a0ksib7hgkrbdi9q699w302xyyfyvjcb5dd2";
1313 };
1414
15− propagatedBuildInputs = with py; [ wxPython python.modules.readline ];
15+ propagatedBuildInputs = with py; [ wxPython ];
1616
1717 postInstall = ''
1818 mv $out/bin/loxodo.py $out/bin/loxodo
pkgs/applications/misc/ranger/default.nix+1−1
@@ -15,7 +15,7 @@ pythonPackages.buildPythonApplication rec {
1515 sha256 = "0yaviybviwdvfg2a0pf2kk28g10k245499xmbpqlai7fv91f7xll";
1616 };
1717
18− propagatedBuildInputs = [ pythonPackages.python.modules.curses file ];
18+ propagatedBuildInputs = [ file ];
1919
2020 preConfigure = ''
2121 substituteInPlace ranger/ext/img_display.py \
pkgs/applications/misc/roxterm/default.nix+3−3
@@ -1,7 +1,7 @@
11{ stdenv, fetchurl, docbook_xsl, dbus_libs, dbus_glib, expat, gettext
22, gsettings_desktop_schemas, gdk_pixbuf, gtk2, gtk3, hicolor_icon_theme
33, imagemagick, itstool, librsvg, libtool, libxslt, lockfile, makeWrapper
4−, pkgconfig, pythonFull, pythonPackages, vte }:
4+, pkgconfig, python, pythonPackages, vte }:
55
66# TODO: Still getting following warning.
77# 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 {
1919
2020 buildInputs =
2121 [ docbook_xsl expat imagemagick itstool librsvg libtool libxslt
22− makeWrapper pkgconfig pythonFull pythonPackages.lockfile ];
22+ makeWrapper pkgconfig python pythonPackages.lockfile ];
2323
2424 propagatedBuildInputs =
2525 [ dbus_libs dbus_glib gdk_pixbuf gettext gsettings_desktop_schemas gtk2 gtk3 hicolor_icon_theme vte ];
@@ -29,7 +29,7 @@ in stdenv.mkDerivation rec {
2929 "-I${dbus_libs.lib}/lib/dbus-1.0/include" ];
3030
3131 # 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 [
3333 pythonPackages.curses pythonPackages.lockfile
3434 ];
3535
pkgs/applications/misc/rtv/default.nix−1
@@ -17,7 +17,6 @@ pythonPackages.buildPythonApplication rec {
1717 six
1818 praw
1919 kitchen
20− python.modules.curses
2120 praw
2221 ] ++ lib.optional (!pythonPackages.isPy3k) futures;
2322
pkgs/applications/networking/mailreaders/mailpile/default.nix+1−1
@@ -16,7 +16,7 @@ pythonPackages.buildPythonApplication rec {
1616
1717 propagatedBuildInputs = with pythonPackages; [
1818 makeWrapper pillow jinja2 spambayes pythonPackages.lxml
19− python.modules.readline pgpdump gnupg1orig
19+ pgpdump gnupg1orig
2020 ];
2121
2222 postInstall = ''
pkgs/applications/version-management/bazaar/default.nix−3
@@ -10,9 +10,6 @@ pythonPackages.buildPythonApplication rec {
1010 sha256 = "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d";
1111 };
1212
13− # Readline support is needed by bzrtools.
14− propagatedBuildInputs = [ pythonPackages.python.modules.readline ];
15−
1613 doCheck = false;
1714
1815 # Bazaar can't find the certificates alone
pkgs/applications/video/kodi/default.nix+3−3
@@ -1,5 +1,5 @@
11{ stdenv, lib, fetchurl, makeWrapper
2−, pkgconfig, cmake, gnumake, yasm, pythonFull
2+, pkgconfig, cmake, gnumake, yasm, python
33, boost, avahi, libdvdcss, lame, autoreconfHook
44, gettext, pcre-cpp, yajl, fribidi, which
55, openssl, gperf, tinyxml2, taglib, libssh, swig, jre
@@ -54,7 +54,7 @@ in stdenv.mkDerivation rec {
5454
5555 buildInputs = [
5656 makeWrapper libxml2 gnutls
57− pkgconfig cmake gnumake yasm pythonFull
57+ pkgconfig cmake gnumake yasm python
5858 boost libmicrohttpd autoreconfHook
5959 gettext pcre-cpp yajl fribidi libva
6060 openssl gperf tinyxml2 taglib libssh swig jre
@@ -107,7 +107,7 @@ in stdenv.mkDerivation rec {
107107 postInstall = ''
108108 for p in $(ls $out/bin/) ; do
109109 wrapProgram $out/bin/$p \
110− --prefix PATH ":" "${pythonFull}/bin" \
110+ --prefix PATH ":" "${python}/bin" \
111111 --prefix PATH ":" "${glxinfo}/bin" \
112112 --prefix PATH ":" "${xdpyinfo}/bin" \
113113 --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 }:
22
33let
44
@@ -18,7 +18,7 @@ edk2 = stdenv.mkDerivation {
1818 sha256 = "0s9ywb8w7xzlnmm4kwzykxkrdaw53b7pky121cc9wjkllzqwyxrb";
1919 };
2020
21− buildInputs = [ libuuid pythonFull ];
21+ buildInputs = [ libuuid python python.tkinter ];
2222
2323 makeFlags = "-C BaseTools";
2424
@@ -40,7 +40,7 @@ edk2 = stdenv.mkDerivation {
4040
4141 passthru = {
4242 setup = projectDscPath: attrs: {
43− buildInputs = [ pythonFull ] ++
43+ buildInputs = [ python python.tkinter ] ++
4444 stdenv.lib.optionals (attrs ? buildInputs) attrs.buildInputs;
4545
4646 configurePhase = ''
pkgs/development/interpreters/python/cpython/2.7/default.nix+15−108
@@ -1,8 +1,5 @@
11{ stdenv, fetchurl, fetchpatch, self, callPackage, python27Packages
22, bzip2, openssl, gettext
3−
4−, includeModules ? false
5−
63, db, gdbm, ncurses, sqlite, readline
74
85, tcl ? null, tk ? null, xlibsWrapper ? null, libX11 ? null, x11Support ? !stdenv.isCygwin
@@ -27,6 +24,7 @@ let
2724 pythonVersion = majorVersion;
2825 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
2926 libPrefix = "python${majorVersion}";
27+ sitePackages = "lib/${libPrefix}/site-packages";
3028
3129 src = fetchurl {
3230 url = "https://www.python.org/ftp/python/${majorVersion}.${minorVersion}/Python-${version}.tar.xz";
@@ -113,10 +111,8 @@ let
113111 optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc ++
114112 [ bzip2 openssl ]
115113 ++ optionals stdenv.isCygwin [ expat libffi ]
116− ++ optionals includeModules (
117− [ db gdbm ncurses sqlite readline
118− ] ++ optionals x11Support [ tcl tk xlibsWrapper libX11 ]
119− )
114+ ++ [ db gdbm ncurses sqlite readline ]
115+ ++ optionals x11Support [ tcl tk xlibsWrapper libX11 ]
120116 ++ optional zlibSupport zlib
121117 ++ optional stdenv.isDarwin CF;
122118
@@ -129,7 +125,8 @@ let
129125
130126 # Build the basic Python interpreter without modules that have
131127 # external dependencies.
132− python = stdenv.mkDerivation {
128+
129+in stdenv.mkDerivation {
133130 name = "python-${version}";
134131 pythonVersion = majorVersion;
135132
@@ -165,20 +162,25 @@ let
165162 # Python on Nix is not manylinux1 compatible. https://github.com/NixOS/nixpkgs/issues/18484
166163 echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
167164
168− ${optionalString includeModules "$out/bin/python ./setup.py build_ext"}
169−
170165 rm "$out"/lib/python*/plat-*/regen # refers to glibc.dev
171166 '';
172167
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+
173176 passthru = rec {
174− inherit libPrefix;
177+ inherit libPrefix sitePackages;
175178 inherit zlibSupport;
176179 isPy2 = true;
177180 isPy27 = true;
178181 buildEnv = callPackage ../../wrapper.nix { python = self; };
179182 withPackages = import ../../with-packages.nix { inherit buildEnv; pythonPackages = python27Packages; };
180183 executable = libPrefix;
181− sitePackages = "lib/${libPrefix}/site-packages";
182184 interpreter = "${self}/bin/${executable}";
183185 };
184186
@@ -200,99 +202,4 @@ let
200202 platforms = stdenv.lib.platforms.all;
201203 maintainers = with stdenv.lib.maintainers; [ chaoflow domenkozar ];
202204 };
203− };
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; }
205+ }
pkgs/development/interpreters/python/cpython/3.3/default.nix+19−2
@@ -26,6 +26,7 @@ let
2626 pythonVersion = majorVersion;
2727 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
2828 libPrefix = "python${majorVersion}";
29+ sitePackages = "lib/${libPrefix}/site-packages";
2930
3031 buildInputs = filter (p: p != null) [
3132 zlib bzip2 lzma gdbm sqlite db readline ncurses openssl tcl tk libX11 xproto
@@ -79,8 +80,25 @@ stdenv.mkDerivation {
7980 echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
8081 '';
8182
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+
82100 passthru = rec {
83− inherit libPrefix;
101+ inherit libPrefix sitePackages;
84102 zlibSupport = zlib != null;
85103 sqliteSupport = sqlite != null;
86104 dbSupport = db != null;
@@ -93,7 +111,6 @@ stdenv.mkDerivation {
93111 isPy3 = true;
94112 isPy33 = true;
95113 is_py3k = true; # deprecated
96− sitePackages = "lib/${libPrefix}/site-packages";
97114 interpreter = "${self}/bin/${executable}";
98115 };
99116
pkgs/development/interpreters/python/cpython/3.4/default.nix+19−2
@@ -28,6 +28,7 @@ let
2828 pythonVersion = majorVersion;
2929 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
3030 libPrefix = "python${majorVersion}";
31+ sitePackages = "lib/${libPrefix}/site-packages";
3132
3233 buildInputs = filter (p: p != null) [
3334 zlib
@@ -102,8 +103,25 @@ stdenv.mkDerivation {
102103 echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
103104 '';
104105
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+
105123 passthru = rec {
106− inherit libPrefix;
124+ inherit libPrefix sitePackages;
107125 zlibSupport = zlib != null;
108126 sqliteSupport = sqlite != null;
109127 dbSupport = db != null;
@@ -116,7 +134,6 @@ stdenv.mkDerivation {
116134 isPy3 = true;
117135 isPy34 = true;
118136 is_py3k = true; # deprecated
119− sitePackages = "lib/${libPrefix}/site-packages";
120137 interpreter = "${self}/bin/${executable}";
121138 };
122139
pkgs/development/interpreters/python/cpython/3.5/default.nix+9−3
@@ -27,6 +27,7 @@ let
2727 pythonVersion = majorVersion;
2828 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
2929 libPrefix = "python${majorVersion}";
30+ sitePackages = "lib/${libPrefix}/site-packages";
3031
3132 buildInputs = filter (p: p != null) [
3233 zlib
@@ -102,16 +103,22 @@ stdenv.mkDerivation {
102103 postFixup = ''
103104 # Get rid of retained dependencies on -dev packages, and remove
104105 # 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
106107 sed -i $i -e "s|-I/nix/store/[^ ']*||g" -e "s|-L/nix/store/[^ ']*||g" -e "s|$TMPDIR|/no-such-path|g"
107108 done
108109
109110 # FIXME: should regenerate this.
110111 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}/
111116 '';
112117
118+ outputs = ["out" "tkinter"];
119+
113120 passthru = rec {
114− inherit libPrefix;
121+ inherit libPrefix sitePackages;
115122 zlibSupport = zlib != null;
116123 sqliteSupport = sqlite != null;
117124 dbSupport = false;
@@ -124,7 +131,6 @@ stdenv.mkDerivation {
124131 isPy3 = true;
125132 isPy35 = true;
126133 is_py3k = true; # deprecated
127− sitePackages = "lib/${libPrefix}/site-packages";
128134 interpreter = "${self}/bin/${executable}";
129135 };
130136
pkgs/development/interpreters/python/cpython/3.6/default.nix+10−2
@@ -29,6 +29,7 @@ let
2929 pythonVersion = majorVersion;
3030 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
3131 libPrefix = "python${majorVersion}";
32+ sitePackages = "lib/${libPrefix}/site-packages";
3233
3334 buildInputs = filter (p: p != null) [
3435 glibc
@@ -103,8 +104,16 @@ stdenv.mkDerivation {
103104 echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
104105 '';
105106
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+
106115 passthru = rec {
107− inherit libPrefix;
116+ inherit libPrefix sitePackages;
108117 zlibSupport = zlib != null;
109118 sqliteSupport = sqlite != null;
110119 dbSupport = db != null;
@@ -117,7 +126,6 @@ stdenv.mkDerivation {
117126 isPy3 = true;
118127 isPy35 = true;
119128 is_py3k = true; # deprecated
120− sitePackages = "lib/${libPrefix}/site-packages";
121129 interpreter = "${self}/bin/${executable}";
122130 };
123131
pkgs/development/interpreters/python/pypy/2.7/default.nix+3−3
@@ -1,5 +1,5 @@
11{ 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
33, makeWrapper, callPackage, self, pypyPackages, gdbm, db }:
44
55assert zlibSupport -> zlib != null;
@@ -34,7 +34,7 @@ let
3434 patch lib-python/2.7/test/test_pyexpat.py < '${expatch}'
3535 '';
3636
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 ]
3838 ++ stdenv.lib.optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc
3939 ++ stdenv.lib.optional zlibSupport zlib;
4040
@@ -62,7 +62,7 @@ let
6262 '';
6363
6464 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
6666 '';
6767
6868 setupHook = ./setup-hook.sh;
pkgs/development/python-modules/matplotlib/default.nix+1−1
@@ -40,7 +40,7 @@ buildPythonPackage rec {
4040 ]
4141 ++ stdenv.lib.optional enableGtk2 pygtk
4242 ++ 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 ];
4444
4545 patches =
4646 [ ./basedirlist.patch ] ++
pkgs/servers/matrix-synapse/default.nix+1−1
@@ -26,7 +26,7 @@ in pythonPackages.buildPythonApplication rec {
2626 blist canonicaljson daemonize dateutil frozendict pillow pybcrypt pyasn1
2727 pydenticon pymacaroons-pynacl pynacl pyopenssl pysaml2 pytz requests2
2828 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
3030 ldap3 psutil msgpack
3131 ];
3232
pkgs/servers/sabnzbd/default.nix+1−1
@@ -1,7 +1,7 @@
11{stdenv, fetchurl, python, par2cmdline, unzip, unrar, p7zip, makeWrapper}:
22
33let
4− pythonEnv = python.withPackages(ps: with ps; [ pyopenssl python.modules.sqlite3 cheetah]);
4+ pythonEnv = python.withPackages(ps: with ps; [ pyopenssl cheetah]);
55 path = stdenv.lib.makeBinPath [ par2cmdline unrar unzip p7zip ];
66in stdenv.mkDerivation rec {
77 version = "1.1.0";
pkgs/tools/audio/beets/default.nix−2
@@ -92,8 +92,6 @@ in pythonPackages.buildPythonApplication rec {
9292 pythonPackages.pathlib
9393 pythonPackages.pyyaml
9494 pythonPackages.unidecode
95− pythonPackages.python.modules.sqlite3
96− pythonPackages.python.modules.readline
9795 ] ++ optional enableAcoustid pythonPackages.pyacoustid
9896 ++ optional (enableFetchart
9997 || enableEmbyupdate
pkgs/tools/audio/mpdris2/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, autoreconfHook, intltool
2−, pythonPackages, pythonFull
2+, pythonPackages
33}:
44
55stdenv.mkDerivation rec {
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 };
1313
1414 buildInputs = [ intltool autoreconfHook pythonPackages.wrapPython ];
15− propagatedBuildInputs = with pythonPackages; [ pythonFull pygtk dbus-python ];
15+ propagatedBuildInputs = with pythonPackages; [ python pygtk dbus-python ];
1616 pythonPath = with pythonPackages; [ mpd pygtk dbus-python notify ];
1717 postInstall = "wrapPythonPrograms";
1818
pkgs/tools/filesystems/ceph/generic.nix−1
@@ -99,7 +99,6 @@ let
9999 };
100100
101101 wrapArgs = "--set PYTHONPATH \"$(toPythonPath $lib)\""
102− + " --prefix PYTHONPATH : \"$(toPythonPath ${python.modules.readline})\""
103102 + " --prefix PYTHONPATH : \"$(toPythonPath ${pythonPackages.flask})\""
104103 + " --set PATH \"$out/bin\"";
105104in
pkgs/tools/misc/openopc/default.nix+8−6
@@ -1,6 +1,8 @@
1−{ stdenv, fetchurl, pythonFull }:
1+{ stdenv, fetchurl, python }:
22
3−stdenv.mkDerivation rec {
3+let
4+ pythonEnv = python.withPackages(ps: [ps.pyro3]);
5+in stdenv.mkDerivation rec {
46 name = "openopc-${version}";
57 version = "1.2.0";
68
@@ -13,16 +15,16 @@ stdenv.mkDerivation rec {
1315 installPhase = ''
1416 mkdir -p "$out/bin"
1517 mkdir -p "$out/share/doc/openopc"
16− mkdir -p "$out/${pythonFull.python.sitePackages}"
18+ mkdir -p "$out/${pythonEnv.python.sitePackages}"
1719 mkdir -p "$out/libexec/opc"
1820
19− cp src/OpenOPC.py "$out/${pythonFull.python.sitePackages}"
21+ cp src/OpenOPC.py "$out/${pythonEnv.python.sitePackages}"
2022 cp src/opc.py "$out/libexec/opc/"
2123
2224 cat > "$out/bin/opc" << __EOF__
2325 #!${stdenv.shell}
24− export PYTHONPATH="$out/${pythonFull.python.sitePackages}"
25− exec ${pythonFull}/bin/${pythonFull.python.executable} "$out/libexec/opc/opc.py" "\$@"
26+ export PYTHONPATH="$out/${pythonEnv.python.sitePackages}"
27+ exec ${pythonEnv}/bin/${pythonEnv.python.executable} "$out/libexec/opc/opc.py" "\$@"
2628 __EOF__
2729 chmod a+x "$out/bin/opc"
2830
pkgs/tools/misc/venus/default.nix+1−1
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
2828 doCheck = true;
2929 checkPhase = "python runtests.py";
3030
31− buildInputs = [ python python.modules.bsddb libxslt
31+ buildInputs = [ python libxslt
3232 libxml2 pythonPackages.genshi pythonPackages.lxml makeWrapper ];
3333
3434 installPhase = ''
pkgs/tools/security/fail2ban/default.nix+1−1
@@ -13,7 +13,7 @@ pythonPackages.buildPythonApplication {
1313 sha256 = "1m8gqj35kwrn30rqwd488sgakaisz22xa5v9llvz6gwf4f7ps0a9";
1414 };
1515
16− propagatedBuildInputs = [ python.modules.sqlite3 gamin ]
16+ propagatedBuildInputs = [ gamin ]
1717 ++ (stdenv.lib.optional stdenv.isLinux pythonPackages.systemd);
1818
1919 preConfigure = ''
pkgs/top-level/all-packages.nix+20−26
@@ -1661,6 +1661,7 @@ in
16611661
16621662 fontforge = lowPrio (callPackage ../tools/misc/fontforge {
16631663 inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
1664+ python = pythonSmall;
16641665 });
16651666 fontforge-gtk = callPackage ../tools/misc/fontforge {
16661667 withGTK = true;
@@ -2154,7 +2155,7 @@ in
21542155 ihaskell = callPackage ../development/tools/haskell/ihaskell/wrapper.nix {
21552156 inherit (haskellPackages) ihaskell ghcWithPackages;
21562157
2157− ipython = pythonFull.buildEnv.override {
2158+ ipython = python.buildEnv.override {
21582159 extraLibs = with pythonPackages; [ ipython ipykernel jupyter_client notebook ];
21592160 };
21602161
@@ -2983,11 +2984,7 @@ in
29832984
29842985 openobex = callPackage ../tools/bluetooth/openobex { };
29852986
2986− openopc = callPackage ../tools/misc/openopc {
2987− pythonFull = python27.buildEnv.override {
2988− extraLibs = [ python27Packages.pyro3 ];
2989− };
2990− };
2987+ openopc = callPackage ../tools/misc/openopc { };
29912988
29922989 openresolv = callPackage ../tools/networking/openresolv { };
29932990
@@ -5504,6 +5501,11 @@ in
55045501 python2 = python27;
55055502 python3 = python35;
55065503
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+
55075509 # pythonPackages further below, but assigned here because they need to be in sync
55085510 pythonPackages = python2Packages;
55095511 python2Packages = python27Packages;
@@ -5539,17 +5541,6 @@ in
55395541 self = pypy27;
55405542 };
55415543
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−
55535544 python2nix = callPackage ../tools/package-management/python2nix { };
55545545
55555546 pythonDocs = recurseIntoAttrs (callPackage ../development/interpreters/python/cpython/docs {});
@@ -7158,7 +7149,9 @@ in
71587149
71597150 gtkmathview = callPackage ../development/libraries/gtkmathview { };
71607151
7161− glib = callPackage ../development/libraries/glib { };
7152+ glib = callPackage ../development/libraries/glib {
7153+ python = pythonSmall;
7154+ };
71627155 glib-tested = glib.override { # checked version separate to break cycles
71637156 doCheck = true;
71647157 libffi = libffi.override { doCheck = true; };
@@ -8279,7 +8272,9 @@ in
82798272
82808273 libxmi = callPackage ../development/libraries/libxmi { };
82818274
8282− libxml2 = callPackage ../development/libraries/libxml2 { };
8275+ libxml2 = callPackage ../development/libraries/libxml2 {
8276+ python = pythonSmall;
8277+ };
82838278 libxml2Python = pkgs.buildEnv { # slightly hacky
82848279 name = "libxml2+py-${self.libxml2.version}";
82858280 paths = with libxml2; [ dev bin py ];
@@ -10368,11 +10363,12 @@ in
1036810363 inherit clangStdenv fetchurl fetchgit fetchpatch stdenv pkgconfig intltool freetype fontconfig
1036910364 libxslt expat libpng zlib perl mesa_drivers spice_protocol libunwind
1037010365 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
1037210367 cairo epoxy;
1037310368 inherit (darwin) apple_sdk cf-private libobjc;
1037410369 bootstrap_cmds = if stdenv.isDarwin then darwin.bootstrap_cmds else null;
1037510370 mesa = mesa_noglu;
10371+ python = pythonSmall;
1037610372 udev = if stdenv.isLinux then udev else null;
1037710373 libdrm = if stdenv.isLinux then libdrm else null;
1037810374 fglrxCompat = config.xorg.fglrxCompat or false; # `config` because we have no `xorg.override`
@@ -10554,11 +10550,7 @@ in
1055410550
1055510551 drbd = callPackage ../os-specific/linux/drbd { };
1055610552
10557− dstat = callPackage ../os-specific/linux/dstat {
10558− # pythonFull includes the "curses" standard library module, for pretty
10559− # dstat color output
10560− python = pythonFull;
10561− };
10553+ dstat = callPackage ../os-specific/linux/dstat { };
1056210554
1056310555 libossp_uuid = callPackage ../development/libraries/libossp-uuid { };
1056410556
@@ -11528,7 +11520,9 @@ in
1152811520
1152911521 bgnet = callPackage ../data/documentation/bgnet { };
1153011522
11531− cacert = callPackage ../data/misc/cacert { };
11523+ cacert = callPackage ../data/misc/cacert {
11524+ python = pythonSmall;
11525+ };
1153211526
1153311527 caladea = callPackage ../data/fonts/caladea {};
1153411528
pkgs/top-level/python-packages.nix+45−49
@@ -27,15 +27,7 @@ let
2727
2828 buildPythonApplication = args: buildPythonPackage ({namePrefix="";} // args );
2929
30− modules = python.modules or {
31− readline = null;
32− sqlite3 = null;
33− curses = null;
34− curses_panel = null;
35− crypt = null;
36− };
37−
38−in modules // {
30+in {
3931
4032 inherit python bootstrapped-pip isPy26 isPy27 isPy33 isPy34 isPy35 isPy36 isPyPy isPy3k mkPythonDerivation buildPythonPackage buildPythonApplication;
4133
@@ -2036,7 +2028,7 @@ in modules // {
20362028 sha256 = "0grid93yz6i6jb2zggrqncp5awdf7qi88j5y2k7dq0k9r6b8zydw";
20372029 };
20382030
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 ]
20402032 ++ optional visualizationSupport pyqtgraph;
20412033
20422034 meta = with stdenv.lib; {
@@ -2798,7 +2790,7 @@ in modules // {
27982790 sha256 = "1ilf58qq7sazmcgg4f1wswbhcn2gb8qbbrpgm6gf0j2lbm60gabl";
27992791 };
28002792
2801− propagatedBuildInputs = with self; [ modules.curses pygments ];
2793+ propagatedBuildInputs = with self; [ pygments ];
28022794 doCheck = false;
28032795
28042796 meta = {
@@ -3984,7 +3976,6 @@ in modules // {
39843976
39853977 propagatedBuildInputs = with self; [
39863978 pyparsing
3987− modules.readline
39883979 urwid
39893980 ];
39903981
@@ -4200,7 +4191,7 @@ in modules // {
42004191 name = "cryptacular-1.4.1";
42014192
42024193 buildInputs = with self; [ coverage nose ];
4203− propagatedBuildInputs = with self; [ pbkdf2 modules.crypt ];
4194+ propagatedBuildInputs = with self; [ pbkdf2 ];
42044195
42054196 src = pkgs.fetchurl {
42064197 url = "mirror://pypi/c/cryptacular/${name}.tar.gz";
@@ -4228,7 +4219,7 @@ in modules // {
42284219 buildInputs = [ pkgs.openssl self.pretend self.cryptography_vectors
42294220 self.iso8601 self.pyasn1 self.pytest_29 self.py self.hypothesis self.pytz ]
42304221 ++ 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 ]
42324223 ++ optional (pythonOlder "3.4") self.enum34;
42334224
42344225 # IOKit's dependencies are inconsistent between OSX versions, so this is the best we
@@ -5682,7 +5673,7 @@ in modules // {
56825673 make -f Makefile.prep synctus/ddar_pb2.py
56835674 '';
56845675
5685− propagatedBuildInputs = with self; [ protobuf modules.sqlite3 ];
5676+ propagatedBuildInputs = with self; [ protobuf ];
56865677
56875678 meta = {
56885679 description = "Unix de-duplicating archiver";
@@ -6624,7 +6615,7 @@ in modules // {
66246615 sha256 = "105swvzshgn3g6bjwk67xd8pslnhpxwa63mdsw6cl4c7cjp2blx9";
66256616 };
66266617
6627− propagatedBuildInputs = with self; [ python_fedora modules.sqlite3 pyopenssl ];
6618+ propagatedBuildInputs = with self; [ python_fedora pyopenssl ];
66286619 postInstall = "mv $out/bin/fedpkg $out/bin/fedora-cert-fedpkg";
66296620 doCheck = false;
66306621 };
@@ -7467,7 +7458,6 @@ in modules // {
74677458 pyyaml
74687459 redis
74697460 six
7470− modules.sqlite3
74717461 pkgs.zlib
74727462 ];
74737463
@@ -7861,8 +7851,7 @@ in modules // {
78617851 sha256 = "1dnmnkc21zdfaypskbpvkwl0wpkpn0nagj1fc338w64mbxrk8ny7";
78627852 };
78637853
7864− propagatedBuildInputs = with self;
7865− [
7854+ propagatedBuildInputs = with self; [
78667855 apipkg
78677856 bottle
78687857 gevent
@@ -7877,7 +7866,7 @@ in modules // {
78777866 simplejson
78787867 sqlite3dbm
78797868 timelib
7880− ] ++ optionals (!isPy3k) [ modules.sqlite3 ];
7869+ ];
78817870
78827871 meta = {
78837872 description = "Library for parsing MediaWiki articles and converting them to different output formats";
@@ -9502,7 +9491,7 @@ in modules // {
95029491 };
95039492
95049493 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
95069495 ];
95079496
95089497 nativeBuildInputs = [ pkgs.intltool ];
@@ -11716,7 +11705,7 @@ in modules // {
1171611705 doCheck = false;
1171711706
1171811707 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 ];
1172011709
1172111710 preConfigure = ''
1172211711 sed -i 's/data_files\.append((conf_path/data_files.append(("etc\/glances"/' setup.py;
@@ -12158,7 +12147,7 @@ in modules // {
1215812147 };
1215912148
1216012149 buildInputs = with self; [ flake8 pytest flaky ];
12161− propagatedBuildInputs = with self; ([ uncompyle6 ] ++ optionals isPy27 [ enum34 modules.sqlite3 ]);
12150+ propagatedBuildInputs = with self; ([ uncompyle6 ] ++ optionals isPy27 [ enum34 ]);
1216212151
1216312152 # https://github.com/DRMacIver/hypothesis/issues/300
1216412153 checkPhase = ''
@@ -12839,7 +12828,7 @@ in modules // {
1283912828 };
1284012829
1284112830 propagatedBuildInputs = with self; [
12842− pytz six tzlocal keyring modules.readline argparse dateutil_1_5
12831+ pytz six tzlocal keyring argparse dateutil_1_5
1284312832 parsedatetime
1284412833 ];
1284512834
@@ -13248,7 +13237,7 @@ in modules // {
1324813237 sed -i 's/version=version/version="${version}"/' setup.py
1324913238 '';
1325013239 buildInputs = with self; [ pkgs.git ];
13251− propagatedBuildInputs = with self; [ modules.sqlite3 ];
13240+ propagatedBuildInputs = with self; [ ];
1325213241
1325313242 doCheck = false;
1325413243
@@ -13848,7 +13837,7 @@ in modules // {
1384813837 buildInputs = with self; [ pyflakes pep8 ];
1384913838 propagatedBuildInputs = with self; [
1385013839 django_1_6 filebrowser_safe grappelli_safe bleach tzlocal beautifulsoup4
13851− requests2 requests_oauthlib future pillow modules.sqlite3
13840+ requests2 requests_oauthlib future pillow
1385213841 ];
1385313842
1385413843 # Tests Fail Due to Syntax Warning, Fixed for v3.1.11+
@@ -13987,7 +13976,7 @@ in modules // {
1398713976
1398813977 buildInputs = with self; [
1398913978 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
1399113980 pocket
1399213981 ];
1399313982
@@ -14303,7 +14292,7 @@ in modules // {
1430314292
1430414293 LC_ALL="en_US.UTF-8";
1430514294
14306− propagatedBuildInputs = with self; [ argparse jinja2 six modules.readline ] ++
14295+ propagatedBuildInputs = with self; [ argparse jinja2 six ] ++
1430714296 (optionals isPy26 [ importlib ordereddict ]);
1430814297
1430914298 meta = {
@@ -15021,7 +15010,6 @@ in modules // {
1502115010 propagatedBuildInputs = with self; [
1502215011 numpy
1502315012 nose
15024− modules.sqlite3
1502515013 ];
1502615014
1502715015 # Failing tests
@@ -17367,7 +17355,6 @@ in modules // {
1736717355 sqlalchemy
1736817356 lxml
1736917357 html5lib
17370− modules.sqlite3
1737117358 beautifulsoup4
1737217359 openpyxl
1737317360 tables
@@ -17885,7 +17872,7 @@ in modules // {
1788517872 sha256 = "169s5mhw1s60qbsd6pkf9bb2x6wfgx8hn8nw9d4qgc68qnnpp2cj";
1788617873 };
1788717874
17888− propagatedBuildInputs = with self; [ modules.curses ];
17875+ propagatedBuildInputs = with self; [ ];
1788917876
1789017877 meta = {
1789117878 homepage = https://github.com/mooz/percol;
@@ -20206,7 +20193,7 @@ in modules // {
2020620193 sha256 = "0jgyhkkq36wn36rymn4jiyqh2vdslmradq4a2mjkxfbk2cz6wpi5";
2020720194 };
2020820195
20209− buildInputs = with self; [ six pytest hypothesis ] ++ optional (!isPy3k) modules.sqlite3;
20196+ buildInputs = with self; [ six pytest hypothesis ];
2021020197
2021120198 checkPhase = ''
2021220199 py.test
@@ -21204,7 +21191,7 @@ in modules // {
2120421191 };
2120521192
2120621193 buildInputs = with self; [ nose ];
21207− propagatedBuildInputs = with self; [ modules.sqlite3 six ];
21194+ propagatedBuildInputs = with self; [ six ];
2120821195
2120921196 checkPhase = "nosetests";
2121021197
@@ -21747,7 +21734,7 @@ in modules // {
2174721734
2174821735 propagatedBuildInputs = with self;
2174921736 [ 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
2175121738 psycopg2 django-haystack python_mimeparse markdown django-multiselectfield
2175221739 ];
2175321740 };
@@ -21915,7 +21902,7 @@ in modules // {
2191521902 sha256 = "1lf5f4x80f7d983bmkx12sxcizzii21kghs8kf63a1mj022a5x5j";
2191621903 };
2191721904
21918− propagatedBuildInputs = with self; [ pygments wxPython modules.sqlite3 ];
21905+ propagatedBuildInputs = with self; [ pygments wxPython ];
2191921906
2192021907 # ride_postinstall.py checks that needed deps are installed and creates a
2192121908 # desktop shortcut. We don't really need it and it clutters up bin/ so
@@ -22345,8 +22332,6 @@ in modules // {
2234522332 sha256 = "1bqmp0xglkndrqgmybpwmzkv462mir8qlkfwsxwbvvzh9li3ndn5";
2234622333 };
2234722334
22348− propagatedBuildInputs = [ modules.readline ];
22349−
2235022335 meta = {
2235122336 description = "Powerful interactive network packet manipulation program";
2235222337 homepage = http://www.secdev.org/projects/scapy/;
@@ -22815,8 +22800,6 @@ in modules // {
2281522800 sha256 = "4721607e0b817b89efdba7e79cab881a03164b94777f4cf796ad5dd59a7612c5";
2281622801 };
2281722802
22818− buildInputs = with self; [ modules.sqlite3 ];
22819−
2282022803 meta = {
2282122804 description = "sqlite-backed dictionary";
2282222805 homepage = "http://github.com/Yelp/sqlite3dbm";
@@ -22849,8 +22832,6 @@ in modules // {
2284922832 sha256 = "0g8sjky8anrmcisc697b5qndp88qmay35kng9sz9x46wd3agm9pa";
2285022833 };
2285122834
22852− propagatedBuildInputs = with self; [ modules.sqlite3 ];
22853−
2285422835 meta = with pkgs.stdenv.lib; {
2285522836 homepage = "http://sqlmap.org";
2285622837 license = licenses.gpl2;
@@ -23311,7 +23292,7 @@ in modules // {
2331123292 # 4 failing tests, 2to3
2331223293 doCheck = false;
2331323294
23314− propagatedBuildInputs = with self; [ modules.curses ];
23295+ propagatedBuildInputs = with self; [ ];
2331523296
2331623297 meta = {
2331723298 maintainers = with maintainers; [ domenkozar ];
@@ -23907,7 +23888,6 @@ in modules // {
2390723888
2390823889 buildInputs = with self; [ nose mock ]
2390923890 ++ stdenv.lib.optional doCheck pysqlite;
23910− propagatedBuildInputs = with self; [ modules.sqlite3 ];
2391123891
2391223892 checkPhase = ''
2391323893 ${python.executable} sqla_nose.py
@@ -23933,7 +23913,6 @@ in modules // {
2393323913
2393423914 buildInputs = with self; [ pytest mock pytest_xdist ]
2393523915 ++ stdenv.lib.optional (!isPy3k) pysqlite;
23936− propagatedBuildInputs = with self; [ modules.sqlite3 ];
2393723916
2393823917 # Test-only dependency pysqlite doesn't build on Python 3. This isn't an
2393923918 # acceptable reason to make all dependents unavailable on Python 3 as well
@@ -24698,6 +24677,23 @@ in modules // {
2469824677 };
2469924678 };
2470024679
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+
2470124697 tlslite = buildPythonPackage rec {
2470224698 name = "tlslite-${version}";
2470324699 version = "0.4.8";
@@ -24862,7 +24858,7 @@ in modules // {
2486224858
2486324859 PYTHON_EGG_CACHE = "`pwd`/.egg-cache";
2486424860
24865− propagatedBuildInputs = with self; [ genshi setuptools modules.sqlite3 ];
24861+ propagatedBuildInputs = with self; [ genshi ];
2486624862
2486724863 meta = {
2486824864 description = "Enhanced wiki and issue tracking system for software development projects";
@@ -25447,7 +25443,7 @@ in modules // {
2544725443
2544825444 patches = [ ../development/python-modules/virtualenv-change-prefix.patch ];
2544925445
25450− propagatedBuildInputs = with self; [ modules.readline modules.sqlite3 modules.curses ];
25446+ propagatedBuildInputs = with self; [ ];
2545125447
2545225448 # Tarball doesn't contain tests
2545325449 doCheck = false;
@@ -25868,7 +25864,7 @@ in modules // {
2586825864 sha256 = "e03dd26ea694b877a2b3b7b4dcca8e79420e7f346abab34292bff43d992a8cc5";
2586925865 };
2587025866
25871− buildInputs = with self; [ pytest modules.sqlite3 ];
25867+ buildInputs = with self; [ pytest ];
2587225868 propagatedBuildInputs = with self; [ feedparser pytz lxml praw pyenchant pygeoip backports_ssl_match_hostname ];
2587325869 checkPhase = ''
2587425870 py.test test
@@ -26910,7 +26906,7 @@ in modules // {
2691026906 };
2691126907
2691226908 buildInputs = with self; [ unittest2 nose mock ];
26913− propagatedBuildInputs = with self; [ modules.curses libarchive ];
26909+ propagatedBuildInputs = with self; [ libarchive ];
2691426910
2691526911 # tests are still failing
2691626912 doCheck = false;
@@ -27452,7 +27448,7 @@ in modules // {
2745227448 sha256 = "472a4403fd5b5364939aee10e78f171b1489e5f6bfe6f150ed9cae8476410114";
2745327449 };
2745427450
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 ];
2745627452
2745727453 postInstall = ''
2745827454 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; };
130130 portmap = linux;
131131 procps = linux;
132132 python = allBut cygwin;
133− pythonFull = linux;
134133 readline = all;
135134 rlwrap = all;
136135 rpm = linux;