@@ -27,15 +27,7 @@ let
28 buildPythonApplication = args: buildPythonPackage ({namePrefix="";} // args );
28 buildPythonApplication = args: buildPythonPackage ({namePrefix="";} // args );
30− modules = python.modules or {
30+in {
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;
@@ -2036,7 +2028,7 @@ in modules // {
2036 sha256 = "0grid93yz6i6jb2zggrqncp5awdf7qi88j5y2k7dq0k9r6b8zydw";
2028 sha256 = "0grid93yz6i6jb2zggrqncp5awdf7qi88j5y2k7dq0k9r6b8zydw";
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;
2042 meta = with stdenv.lib; {
2034 meta = with stdenv.lib; {
@@ -2798,7 +2790,7 @@ in modules // {
2798 sha256 = "1ilf58qq7sazmcgg4f1wswbhcn2gb8qbbrpgm6gf0j2lbm60gabl";
2790 sha256 = "1ilf58qq7sazmcgg4f1wswbhcn2gb8qbbrpgm6gf0j2lbm60gabl";
2801− propagatedBuildInputs = with self; [ modules.curses pygments ];
2793+ propagatedBuildInputs = with self; [ pygments ];
2802 doCheck = false;
2794 doCheck = false;
2804 meta = {
2796 meta = {
@@ -3984,7 +3976,6 @@ in modules // {
3985 propagatedBuildInputs = with self; [
3977 propagatedBuildInputs = with self; [
3986 pyparsing
3978 pyparsing
@@ -4200,7 +4191,7 @@ in modules // {
4200 name = "cryptacular-1.4.1";
4191 name = "cryptacular-1.4.1";
4202 buildInputs = with self; [ coverage nose ];
4193 buildInputs = with self; [ coverage nose ];
4203− propagatedBuildInputs = with self; [ pbkdf2 modules.crypt ];
4194+ propagatedBuildInputs = with self; [ pbkdf2 ];
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;
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
5685− propagatedBuildInputs = with self; [ protobuf modules.sqlite3 ];
5676+ propagatedBuildInputs = with self; [ protobuf ];
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";
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;
@@ -7467,7 +7458,6 @@ in modules // {
7471 pkgs.zlib
7461 pkgs.zlib
@@ -7861,8 +7851,7 @@ in modules // {
7861 sha256 = "1dnmnkc21zdfaypskbpvkwl0wpkpn0nagj1fc338w64mbxrk8ny7";
7851 sha256 = "1dnmnkc21zdfaypskbpvkwl0wpkpn0nagj1fc338w64mbxrk8ny7";
7864− propagatedBuildInputs = with self;
7854+ propagatedBuildInputs = with self; [
@@ -7877,7 +7866,7 @@ in modules // {
7877 simplejson
7866 simplejson
7878 sqlite3dbm
7867 sqlite3dbm
7880− ] ++ optionals (!isPy3k) [ modules.sqlite3 ];
7869+ ];
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 // {
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
9508 nativeBuildInputs = [ pkgs.intltool ];
9497 nativeBuildInputs = [ pkgs.intltool ];
@@ -11716,7 +11705,7 @@ in modules // {
11716 doCheck = false;
11705 doCheck = false;
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 ];
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 // {
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 ]);
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 // {
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
@@ -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
13250 buildInputs = with self; [ pkgs.git ];
13239 buildInputs = with self; [ pkgs.git ];
13251− propagatedBuildInputs = with self; [ modules.sqlite3 ];
13240+ propagatedBuildInputs = with self; [ ];
13253 doCheck = false;
13242 doCheck = false;
@@ -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
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 // {
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
@@ -14303,7 +14292,7 @@ in modules // {
14304 LC_ALL="en_US.UTF-8";
14293 LC_ALL="en_US.UTF-8";
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 ]);
14309 meta = {
14298 meta = {
@@ -15021,7 +15010,6 @@ in modules // {
15021 propagatedBuildInputs = with self; [
15010 propagatedBuildInputs = with self; [
15027 # Failing tests
15015 # Failing tests
@@ -17367,7 +17355,6 @@ in modules // {
17367 sqlalchemy
17355 sqlalchemy
17369 html5lib
17357 html5lib
17371 beautifulsoup4
17358 beautifulsoup4
17372 openpyxl
17359 openpyxl
@@ -17885,7 +17872,7 @@ in modules // {
17885 sha256 = "169s5mhw1s60qbsd6pkf9bb2x6wfgx8hn8nw9d4qgc68qnnpp2cj";
17872 sha256 = "169s5mhw1s60qbsd6pkf9bb2x6wfgx8hn8nw9d4qgc68qnnpp2cj";
17888− propagatedBuildInputs = with self; [ modules.curses ];
17875+ propagatedBuildInputs = with self; [ ];
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";
20209− buildInputs = with self; [ six pytest hypothesis ] ++ optional (!isPy3k) modules.sqlite3;
20196+ buildInputs = with self; [ six pytest hypothesis ];
20211 checkPhase = ''
20198 checkPhase = ''
20212 py.test
20199 py.test
@@ -21204,7 +21191,7 @@ in modules // {
21206 buildInputs = with self; [ nose ];
21193 buildInputs = with self; [ nose ];
21207− propagatedBuildInputs = with self; [ modules.sqlite3 six ];
21194+ propagatedBuildInputs = with self; [ six ];
21209 checkPhase = "nosetests";
21196 checkPhase = "nosetests";
@@ -21747,7 +21734,7 @@ in modules // {
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
@@ -21915,7 +21902,7 @@ in modules // {
21915 sha256 = "1lf5f4x80f7d983bmkx12sxcizzii21kghs8kf63a1mj022a5x5j";
21902 sha256 = "1lf5f4x80f7d983bmkx12sxcizzii21kghs8kf63a1mj022a5x5j";
21918− propagatedBuildInputs = with self; [ pygments wxPython modules.sqlite3 ];
21905+ propagatedBuildInputs = with self; [ pygments wxPython ];
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";
22348− propagatedBuildInputs = [ modules.readline ];
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";
22818− buildInputs = with self; [ modules.sqlite3 ];
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";
22852− propagatedBuildInputs = with self; [ modules.sqlite3 ];
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;
23314− propagatedBuildInputs = with self; [ modules.curses ];
23295+ propagatedBuildInputs = with self; [ ];
23316 meta = {
23297 meta = {
23317 maintainers = with maintainers; [ domenkozar ];
23298 maintainers = with maintainers; [ domenkozar ];
@@ -23907,7 +23888,6 @@ in modules // {
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 ];
23912 checkPhase = ''
23892 checkPhase = ''
23913 ${python.executable} sqla_nose.py
23893 ${python.executable} sqla_nose.py
@@ -23933,7 +23913,6 @@ in modules // {
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 ];
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 // {
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;
24687+ disabled = isPy26 || isPyPy;
24691+ cp -R ${python.tkinter}/* $out
24694+ inherit (python) meta;
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 // {
24863 PYTHON_EGG_CACHE = "`pwd`/.egg-cache";
24859 PYTHON_EGG_CACHE = "`pwd`/.egg-cache";
24865− propagatedBuildInputs = with self; [ genshi setuptools modules.sqlite3 ];
24861+ propagatedBuildInputs = with self; [ genshi ];
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 // {
25448 patches = [ ../development/python-modules/virtualenv-change-prefix.patch ];
25444 patches = [ ../development/python-modules/virtualenv-change-prefix.patch ];
25450− propagatedBuildInputs = with self; [ modules.readline modules.sqlite3 modules.curses ];
25446+ propagatedBuildInputs = with self; [ ];
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";
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 // {
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 ];
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";
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 ];
27457 postInstall = ''
27453 postInstall = ''
27458 wrapProgram $out/bin/run-graphite-devel-server.py \
27454 wrapProgram $out/bin/run-graphite-devel-server.py \