@@ -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 \