git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages: remove traces of Python 2.6
commit1dd0109c8c8ef61bd3fa985d4fe817e0c3d3c948 authorFrederik Rietdijk <fridh@fridh.nl> dateMon 25 Jun 2018, 10:50 (8 years ago) parent6806fb5
7 files changed+32−63
pkgs/development/python-modules/aiodns/default.nix+4−4 pkgs/development/python-modules/future/default.nix−4 pkgs/development/python-modules/grpcio/default.nix+3−3 pkgs/development/python-modules/pelican/default.nix+1−2 pkgs/development/python-modules/pytest/default.nix+2−3 pkgs/development/python-modules/trollius/default.nix+2−5 pkgs/top-level/python-packages.nix+20−42
pkgs/development/python-modules/aiodns/default.nix+4−4
@@ -1,5 +1,5 @@
11{ stdenv, buildPythonPackage, fetchPypi
2−, isPy33, isPy26, isPy27, isPyPy, python, pycares, asyncio, trollius }:
2+, isPy33, isPy27, isPyPy, python, pycares, asyncio, trollius }:
33
44buildPythonPackage rec {
55 pname = "aiodns";
@@ -10,9 +10,9 @@ buildPythonPackage rec {
1010 sha256 = "d8677adc679ce8d0ef706c14d9c3d2f27a0e0cc11d59730cdbaf218ad52dd9ea";
1111 };
1212
13− propagatedBuildInputs = with stdenv.lib; [ pycares ]
14− ++ optional isPy33 asyncio
15− ++ optional (isPy26 || isPy27 || isPyPy) trollius;
13+ propagatedBuildInputs = with stdenv.lib; [ pycares ]
14+ ++ optional isPy33 asyncio
15+ ++ optional (isPy27 || isPyPy) trollius;
1616
1717 checkPhase = ''
1818 ${python.interpreter} tests.py
pkgs/development/python-modules/future/default.nix−4
@@ -1,9 +1,6 @@
11{ lib
22, buildPythonPackage
33, fetchPypi
4−, isPy26
5−, importlib
6−, argparse
74}:
85
96buildPythonPackage rec {
@@ -15,7 +12,6 @@ buildPythonPackage rec {
1512 sha256 = "1nzy1k4m9966sikp0qka7lirh8sqrsyainyf8rk97db7nwdfv773";
1613 };
1714
18− propagatedBuildInputs = lib.optionals isPy26 [ importlib argparse ];
1915 doCheck = false;
2016
2117 meta = {
pkgs/development/python-modules/grpcio/default.nix+3−3
@@ -1,5 +1,5 @@
11{ stdenv, buildPythonPackage, fetchPypi, lib
2−, six, protobuf, enum34, futures, isPy26, isPy27, isPy34 }:
2+, six, protobuf, enum34, futures, isPy27, isPy34 }:
33
44buildPythonPackage rec {
55 pname = "grpcio";
@@ -11,8 +11,8 @@ buildPythonPackage rec {
1111 };
1212
1313 propagatedBuildInputs = [ six protobuf ]
14− ++ lib.optionals (isPy26 || isPy27 || isPy34) [ enum34 ]
15− ++ lib.optionals (isPy26 || isPy27) [ futures ];
14+ ++ lib.optionals (isPy27 || isPy34) [ enum34 ]
15+ ++ lib.optionals (isPy27) [ futures ];
1616
1717 meta = with stdenv.lib; {
1818 description = "HTTP/2-based RPC framework";
pkgs/development/python-modules/pelican/default.nix+1−2
@@ -1,4 +1,4 @@
1−{ stdenv, buildPythonPackage, fetchFromGitHub, isPy26
1+{ stdenv, buildPythonPackage, fetchFromGitHub
22, glibcLocales, pandoc, git
33, mock, nose, markdown, lxml, typogrify
44, jinja2, pygments, docutils, pytz, unidecode, six, dateutil, feedgenerator
@@ -7,7 +7,6 @@
77buildPythonPackage rec {
88 pname = "pelican";
99 version = "3.7.1";
10− disabled = isPy26;
1110
1211 src = fetchFromGitHub {
1312 owner = "getpelican";
pkgs/development/python-modules/pytest/default.nix+2−3
@@ -1,4 +1,4 @@
1−{ stdenv, buildPythonPackage, fetchPypi, isPy26, argparse, attrs, hypothesis, py
1+{ stdenv, buildPythonPackage, fetchPypi, attrs, hypothesis, py
22, setuptools_scm, setuptools, six, pluggy, funcsigs, isPy3k, more-itertools
33, atomicwrites, mock
44}:
@@ -19,8 +19,7 @@ buildPythonPackage rec {
1919 checkInputs = [ hypothesis mock ];
2020 buildInputs = [ setuptools_scm ];
2121 propagatedBuildInputs = [ attrs py setuptools six pluggy more-itertools atomicwrites]
22− ++ (stdenv.lib.optional (!isPy3k) funcsigs)
23− ++ (stdenv.lib.optional isPy26 argparse);
22+ ++ (stdenv.lib.optional (!isPy3k) funcsigs);
2423
2524 checkPhase = ''
2625 runHook preCheck
pkgs/development/python-modules/trollius/default.nix+2−5
@@ -1,17 +1,14 @@
1−{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, isPy26, isPyPy, mock, futures }:
1+{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, isPyPy, mock, futures }:
22buildPythonPackage rec {
33 pname = "trollius";
44 version = "1.0.4";
5− name = "${pname}-${version}";
6−
7− disabled = isPy26;
85
96 src = fetchPypi {
107 inherit pname version;
118 sha256 = "0xny8y12x3wrflmyn6xi8a7n3m3ac80fgmgzphx5jbbaxkjcm148";
129 };
1310
14− buildInputs = [ mock ];
11+ checkInputs = [ mock ];
1512
1613 propagatedBuildInputs = lib.optionals (isPy27 || isPyPy) [ futures ];
1714
pkgs/top-level/python-packages.nix+20−42
@@ -20,7 +20,6 @@ let
2020let
2121 pythonAtLeast = versionAtLeast python.pythonVersion;
2222 pythonOlder = versionOlder python.pythonVersion;
23− isPy26 = python.pythonVersion == "2.6";
2423 isPy27 = python.pythonVersion == "2.7";
2524 isPy33 = python.pythonVersion == "3.3";
2625 isPy34 = python.pythonVersion == "3.4";
@@ -132,7 +131,7 @@ let
132131
133132in {
134133
135− inherit python bootstrapped-pip pythonAtLeast pythonOlder isPy26 isPy27 isPy33 isPy34 isPy35 isPy36 isPyPy isPy3k buildPythonPackage buildPythonApplication;
134+ inherit python bootstrapped-pip pythonAtLeast pythonOlder isPy27 isPy33 isPy34 isPy35 isPy36 isPyPy isPy3k buildPythonPackage buildPythonApplication;
136135 inherit fetchPypi callPackage;
137136 inherit hasPythonModule requiredPythonModules makePythonPath disabledIf;
138137 inherit toPythonModule toPythonApplication;
@@ -970,7 +969,7 @@ in {
970969 name = "${pname}-${version}";
971970 version = "0.2.2";
972971 pname = "basiciw";
973− disabled = isPy26 || isPy27 || isPyPy;
972+ disabled = isPy27 || isPyPy;
974973
975974 src = pkgs.fetchurl {
976975 url = "mirror://pypi/b/${pname}/${name}.tar.gz";
@@ -1016,7 +1015,7 @@ in {
10161015 propagatedBuildInputs = [
10171016 self.sqlalchemy
10181017 self.pycrypto
1019− ] ++ optionals (isPy26 || isPy27) [
1018+ ] ++ optionals (isPy27) [
10201019 self.funcsigs
10211020 self.pycryptopp
10221021 ];
@@ -1943,7 +1942,7 @@ in {
19431942 };
19441943
19451944 # Needed for celery
1946− pytest_32 = self.pytest_36.overrideAttrs( oldAttrs: rec {
1945+ pytest_32 = self.pytest_36.overridePythonAttrs( oldAttrs: rec {
19471946 version = "3.2.5";
19481947 src = oldAttrs.src.override {
19491948 inherit version;
@@ -2927,8 +2926,6 @@ in {
29272926 name = "gtimelog-${version}";
29282927 version = "0.9.1";
29292928
2930− disabled = isPy26;
2931−
29322929 src = pkgs.fetchurl {
29332930 url = "https://github.com/gtimelog/gtimelog/archive/${version}.tar.gz";
29342931 sha256 = "0qk8fv8cszzqpdi3wl9vvkym1jil502ycn6sic4jrxckw5s9jsfj";
@@ -3167,7 +3164,7 @@ in {
31673164 ipfsapi = buildPythonPackage rec {
31683165 name = "ipfsapi-${version}";
31693166 version = "0.4.2.post1";
3170− disabled = isPy26 || isPy27;
3167+ disabled = isPy27;
31713168
31723169 src = pkgs.fetchFromGitHub {
31733170 owner = "ipfs";
@@ -4093,7 +4090,7 @@ in {
40934090 virtualenv
40944091 webtest
40954092 zope_component
4096− ] ++ optional isPy26 unittest2;
4093+ ];
40974094
40984095 propagatedBuildInputs = with self; [
40994096 hupper
@@ -4626,11 +4623,8 @@ in {
46264623 sha256 = "0va95cml7wfjpvgj3dc9xdn8psyjh3zbk6v51b0hcqv2fzh409vb";
46274624 } ;
46284625
4629− buildInputs = with self; [] ++ optionals isPy26 [ ordereddict unittest2 ];
4630−
46314626 meta = {
4632− maintainers = with maintainers; [ garbas domenkozar ];
4633− platforms = platforms.all;
4627+ maintainers = with maintainers; [ garbas domenkozar ];
46344628 };
46354629 };
46364630
@@ -5235,7 +5229,6 @@ in {
52355229 sha256 = "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1";
52365230 };
52375231
5238− buildInputs = optional isPy26 self.ordereddict;
52395232 checkPhase = ''
52405233 ${python.interpreter} -m unittest discover
52415234 '';
@@ -5586,7 +5579,7 @@ in {
55865579 # This is fixed in master I believe but not yet in 2.1;
55875580 doCheck = false;
55885581
5589− propagatedBuildInputs = with self; ([ Babel ] ++ (optionals isPy26 [ ordereddict ]));
5582+ propagatedBuildInputs = with self; [ Babel ];
55905583
55915584 meta = {
55925585 homepage = https://github.com/wtforms/wtforms;
@@ -6032,7 +6025,7 @@ in {
60326025 sha256 = "c77d007cc32cdff836ecf8df6192371767976c108a75b055e057bb6f4a09cd42";
60336026 };
60346027
6035− buildInputs = with self; [ setuptools ] ++ (optional isPy26 argparse);
6028+ buildInputs = with self; [ setuptools ];
60366029
60376030 meta = {
60386031 description = "Automatically generated zsh completion function for Python's option parser modules";
@@ -6047,7 +6040,7 @@ in {
60476040
60486041 gipc = buildPythonPackage rec {
60496042 name = "gipc-0.5.0";
6050− disabled = !isPy26 && !isPy27;
6043+ disabled = !isPy27;
60516044
60526045 src = pkgs.fetchurl {
60536046 url = "mirror://pypi/g/gipc/${name}.zip";
@@ -6569,7 +6562,7 @@ in {
65696562 importlib = buildPythonPackage rec {
65706563 name = "importlib-1.0.2";
65716564
6572− disabled = (!isPy26) || isPyPy;
6565+ disabled = isPyPy;
65736566
65746567 src = pkgs.fetchurl {
65756568 url = "mirror://pypi/i/importlib/importlib-1.0.2.tar.gz";
@@ -6784,7 +6777,7 @@ in {
67846777 sha256 = "0y3w1x9935qzx8w6m2r6g4ghyjmxn33wryiif6xb56q7cj9w1433";
67856778 };
67866779
6787− disabled = ! (isPy26 || isPy27);
6780+ disabled = !isPy27;
67886781
67896782 buildInputs = [ self.nose ];
67906783
@@ -7400,8 +7393,6 @@ in {
74007393 sha256 = "0xzz7j8xskj5y6as178mjmm0i2xbhd4q4mwmdnvghpd2aqq3qx1c";
74017394 };
74027395
7403− disabled = isPy26;
7404−
74057396 buildInputs = with self; [ pexpect ];
74067397
74077398 prePatch = ''
@@ -8571,7 +8562,7 @@ in {
85718562
85728563 nose-exclude = callPackage ../development/python-modules/nose-exclude { };
85738564
8574− nose2 = if isPy26 then null else (buildPythonPackage rec {
8565+ nose2 = buildPythonPackage rec {
85758566 name = "nose2-0.5.0";
85768567 src = pkgs.fetchurl {
85778568 url = "mirror://pypi/n/nose2/${name}.tar.gz";
@@ -8583,7 +8574,7 @@ in {
85838574 propagatedBuildInputs = with self; [ six ];
85848575 # AttributeError: 'module' object has no attribute 'collector'
85858576 doCheck = false;
8586− });
8577+ };
85878578
85888579 nose-cover3 = buildPythonPackage rec {
85898580 name = "nose-cover3-${version}";
@@ -8859,7 +8850,6 @@ in {
88598850 buildInputs = [ pkgs.makeWrapper ];
88608851
88618852 propagatedBuildInputs = with self; [ pkgs.rtmpdump pycrypto requests ]
8862− ++ optionals isPy26 [ singledispatch futures argparse ]
88638853 ++ optionals isPy27 [ singledispatch futures ]
88648854 ++ optionals isPy33 [ singledispatch ];
88658855
@@ -9427,7 +9417,7 @@ in {
94279417 name = "paho-mqtt-${version}";
94289418 version = "1.1";
94299419
9430− disabled = isPyPy || isPy26;
9420+ disabled = isPyPy;
94319421
94329422 src = pkgs.fetchurl {
94339423 url = "mirror://pypi/p/paho-mqtt/${name}.tar.gz";
@@ -11709,7 +11699,7 @@ in {
1170911699 python-wifi = buildPythonPackage rec {
1171011700 name = "python-wifi-${version}";
1171111701 version = "0.6.1";
11712− disabled = ! (isPy26 || isPy27 );
11702+ disabled = !isPy27;
1171311703
1171411704 src = pkgs.fetchurl {
1171511705 url = "mirror://pypi/p/python-wifi/${name}.tar.bz2";
@@ -12045,7 +12035,6 @@ in {
1204512035
1204612036 repocheck = buildPythonPackage rec {
1204712037 name = "repocheck-2015-08-05";
12048− disabled = isPy26 || isPy27;
1204912038
1205012039 src = pkgs.fetchFromGitHub {
1205112040 sha256 = "1jc4v5zy7z7xlfmbfzvyzkyz893f5x2k6kvb3ni3rn2df7jqhc81";
@@ -12635,8 +12624,6 @@ in {
1263512624 name = "shortuuid-${version}";
1263612625 version = "0.4.3";
1263712626
12638− disabled = isPy26;
12639−
1264012627 src = pkgs.fetchurl {
1264112628 url = "mirror://pypi/s/shortuuid/${name}.tar.gz";
1264212629 sha256 = "4606dbb19124d98109c00e2cafae2df8117aec02115623e18fb2abe3f766d293";
@@ -12869,7 +12856,7 @@ in {
1286912856 buildInputs = with self; [ pytest ];
1287012857 propagatedBuildInputs = with self; [ praw xmltodict pytz pyenchant pygeoip ];
1287112858
12872− disabled = isPyPy || isPy26 || isPy27;
12859+ disabled = isPyPy || isPy27;
1287312860
1287412861 checkPhase = ''
1287512862 ${python.interpreter} test/*.py #*/
@@ -14059,7 +14046,7 @@ in {
1405914046 src = py;
1406014047 format = "other";
1406114048
14062− disabled = isPy26 || isPyPy;
14049+ disabled = isPyPy;
1406314050
1406414051 installPhase = ''
1406514052 # Move the tkinter module
@@ -14863,11 +14850,6 @@ EOF
1486314850 substituteInPlace setup.py --replace "nose<1.3.0" "nose"
1486414851 '';
1486514852
14866− # XXX: skipping two tests fails in python2.6
14867− doCheck = ! isPy26;
14868−
14869− buildInputs = with self; optionals isPy26 [ ordereddict unittest2 ];
14870−
1487114853 propagatedBuildInputs = with self; [
1487214854 nose
1487314855 webob
@@ -15309,7 +15291,7 @@ EOF
1530915291 sha256 = "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank";
1531015292 };
1531115293
15312− propagatedBuildInputs = with self; [ zope_location zope_event zope_interface zope_testing ] ++ optional isPy26 ordereddict;
15294+ propagatedBuildInputs = with self; [ zope_location zope_event zope_interface zope_testing ];
1531315295
1531415296 # ImportError: No module named 'zope.event'
1531515297 # even though zope_event has been included.
@@ -16934,7 +16916,7 @@ EOF
1693416916
1693516917 jenkins-job-builder = buildPythonPackage rec {
1693616918 name = "jenkins-job-builder-2.0.0.0b2";
16937− disabled = ! (isPy26 || isPy27);
16919+ disabled = !isPy27;
1693816920
1693916921 src = pkgs.fetchurl {
1694016922 url = "mirror://pypi/j/jenkins-job-builder/${name}.tar.gz";
@@ -16956,10 +16938,6 @@ EOF
1695616938 pyyaml
1695716939 six
1695816940 stevedore
16959− ] ++ optionals isPy26 [
16960− ordereddict
16961− argparse
16962− ordereddict
1696316941 ];
1696416942
1696516943 meta = {