summaryrefslogtreecommitdiffstats
path: root/pkgs/top-level/python-packages.nix
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2018-07-17 10:04:59 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2018-07-17 10:04:59 +0200
commit1ae2f10642ea00a423354dd3176c55e47dbf3f6e (patch)
tree7f94ddd06e808ad8fafd657badc27ec1d82d354b /pkgs/top-level/python-packages.nix
parentbac995cd9f07f526d66b571331cd17b8eb7c0f62 (diff)
parent9d0336a2bbe933c1a8e6ea7c7b39eb7ff071ef66 (diff)
Merge staging-next into master
Diffstat (limited to 'pkgs/top-level/python-packages.nix')
-rw-r--r--pkgs/top-level/python-packages.nix62
1 files changed, 20 insertions, 42 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 253796324cbb..b7cac08d8e42 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -20,7 +20,6 @@ let
let
pythonAtLeast = versionAtLeast python.pythonVersion;
pythonOlder = versionOlder python.pythonVersion;
- isPy26 = python.pythonVersion == "2.6";
isPy27 = python.pythonVersion == "2.7";
isPy33 = python.pythonVersion == "3.3";
isPy34 = python.pythonVersion == "3.4";
@@ -133,7 +132,7 @@ let
in {
- inherit python bootstrapped-pip pythonAtLeast pythonOlder isPy26 isPy27 isPy33 isPy34 isPy35 isPy36 isPy37 isPyPy isPy3k buildPythonPackage buildPythonApplication;
+ inherit python bootstrapped-pip pythonAtLeast pythonOlder isPy27 isPy33 isPy34 isPy35 isPy36 isPy37 isPyPy isPy3k buildPythonPackage buildPythonApplication;
inherit fetchPypi callPackage;
inherit hasPythonModule requiredPythonModules makePythonPath disabledIf;
inherit toPythonModule toPythonApplication;
@@ -985,7 +984,7 @@ in {
name = "${pname}-${version}";
version = "0.2.2";
pname = "basiciw";
- disabled = isPy26 || isPy27 || isPyPy;
+ disabled = isPy27 || isPyPy;
src = pkgs.fetchurl {
url = "mirror://pypi/b/${pname}/${name}.tar.gz";
@@ -1031,7 +1030,7 @@ in {
propagatedBuildInputs = [
self.sqlalchemy
self.pycrypto
- ] ++ optionals (isPy26 || isPy27) [
+ ] ++ optionals (isPy27) [
self.funcsigs
self.pycryptopp
];
@@ -1960,7 +1959,7 @@ in {
};
# Needed for celery
- pytest_32 = self.pytest_36.overrideAttrs( oldAttrs: rec {
+ pytest_32 = self.pytest_36.overridePythonAttrs( oldAttrs: rec {
version = "3.2.5";
src = oldAttrs.src.override {
inherit version;
@@ -2931,8 +2930,6 @@ in {
name = "gtimelog-${version}";
version = "0.9.1";
- disabled = isPy26;
-
src = pkgs.fetchurl {
url = "https://github.com/gtimelog/gtimelog/archive/${version}.tar.gz";
sha256 = "0qk8fv8cszzqpdi3wl9vvkym1jil502ycn6sic4jrxckw5s9jsfj";
@@ -3171,7 +3168,7 @@ in {
ipfsapi = buildPythonPackage rec {
name = "ipfsapi-${version}";
version = "0.4.2.post1";
- disabled = isPy26 || isPy27;
+ disabled = isPy27;
src = pkgs.fetchFromGitHub {
owner = "ipfs";
@@ -4099,7 +4096,7 @@ in {
virtualenv
webtest
zope_component
- ] ++ optional isPy26 unittest2;
+ ];
propagatedBuildInputs = with self; [
hupper
@@ -4632,11 +4629,8 @@ in {
sha256 = "0va95cml7wfjpvgj3dc9xdn8psyjh3zbk6v51b0hcqv2fzh409vb";
} ;
- buildInputs = with self; [] ++ optionals isPy26 [ ordereddict unittest2 ];
-
meta = {
- maintainers = with maintainers; [ garbas domenkozar ];
- platforms = platforms.all;
+ maintainers = with maintainers; [ garbas domenkozar ];
};
};
@@ -5241,7 +5235,6 @@ in {
sha256 = "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1";
};
- buildInputs = optional isPy26 self.ordereddict;
checkPhase = ''
${python.interpreter} -m unittest discover
'';
@@ -5594,7 +5587,7 @@ in {
# This is fixed in master I believe but not yet in 2.1;
doCheck = false;
- propagatedBuildInputs = with self; ([ Babel ] ++ (optionals isPy26 [ ordereddict ]));
+ propagatedBuildInputs = with self; [ Babel ];
meta = {
homepage = https://github.com/wtforms/wtforms;
@@ -6040,7 +6033,7 @@ in {
sha256 = "c77d007cc32cdff836ecf8df6192371767976c108a75b055e057bb6f4a09cd42";
};
- buildInputs = with self; [ setuptools ] ++ (optional isPy26 argparse);
+ buildInputs = with self; [ setuptools ];
meta = {
description = "Automatically generated zsh completion function for Python's option parser modules";
@@ -6055,7 +6048,7 @@ in {
gipc = buildPythonPackage rec {
name = "gipc-0.5.0";
- disabled = !isPy26 && !isPy27;
+ disabled = !isPy27;
src = pkgs.fetchurl {
url = "mirror://pypi/g/gipc/${name}.zip";
@@ -6574,7 +6567,7 @@ in {
importlib = buildPythonPackage rec {
name = "importlib-1.0.2";
- disabled = (!isPy26) || isPyPy;
+ disabled = isPyPy;
src = pkgs.fetchurl {
url = "mirror://pypi/i/importlib/importlib-1.0.2.tar.gz";
@@ -6789,7 +6782,7 @@ in {
sha256 = "0y3w1x9935qzx8w6m2r6g4ghyjmxn33wryiif6xb56q7cj9w1433";
};
- disabled = ! (isPy26 || isPy27);
+ disabled = !isPy27;
buildInputs = [ self.nose ];
@@ -7379,8 +7372,6 @@ in {
sha256 = "0xzz7j8xskj5y6as178mjmm0i2xbhd4q4mwmdnvghpd2aqq3qx1c";
};
- disabled = isPy26;
-
buildInputs = with self; [ pexpect ];
prePatch = ''
@@ -8552,7 +8543,7 @@ in {
nose-exclude = callPackage ../development/python-modules/nose-exclude { };
- nose2 = if isPy26 then null else (buildPythonPackage rec {
+ nose2 = buildPythonPackage rec {
name = "nose2-0.5.0";
src = pkgs.fetchurl {
url = "mirror://pypi/n/nose2/${name}.tar.gz";
@@ -8564,7 +8555,7 @@ in {
propagatedBuildInputs = with self; [ six ];
# AttributeError: 'module' object has no attribute 'collector'
doCheck = false;
- });
+ };
nose-cover3 = buildPythonPackage rec {
name = "nose-cover3-${version}";
@@ -8840,7 +8831,6 @@ in {
buildInputs = [ pkgs.makeWrapper ];
propagatedBuildInputs = with self; [ pkgs.rtmpdump pycrypto requests ]
- ++ optionals isPy26 [ singledispatch futures argparse ]
++ optionals isPy27 [ singledispatch futures ]
++ optionals isPy33 [ singledispatch ];
@@ -9410,7 +9400,7 @@ in {
name = "paho-mqtt-${version}";
version = "1.1";
- disabled = isPyPy || isPy26;
+ disabled = isPyPy;
src = pkgs.fetchurl {
url = "mirror://pypi/p/paho-mqtt/${name}.tar.gz";
@@ -11684,7 +11674,7 @@ in {
python-wifi = buildPythonPackage rec {
name = "python-wifi-${version}";
version = "0.6.1";
- disabled = ! (isPy26 || isPy27 );
+ disabled = !isPy27;
src = pkgs.fetchurl {
url = "mirror://pypi/p/python-wifi/${name}.tar.bz2";
@@ -12020,7 +12010,6 @@ in {
repocheck = buildPythonPackage rec {
name = "repocheck-2015-08-05";
- disabled = isPy26 || isPy27;
src = pkgs.fetchFromGitHub {
sha256 = "1jc4v5zy7z7xlfmbfzvyzkyz893f5x2k6kvb3ni3rn2df7jqhc81";
@@ -12610,8 +12599,6 @@ in {
name = "shortuuid-${version}";
version = "0.4.3";
- disabled = isPy26;
-
src = pkgs.fetchurl {
url = "mirror://pypi/s/shortuuid/${name}.tar.gz";
sha256 = "4606dbb19124d98109c00e2cafae2df8117aec02115623e18fb2abe3f766d293";
@@ -12846,7 +12833,7 @@ in {
buildInputs = with self; [ pytest ];
propagatedBuildInputs = with self; [ praw xmltodict pytz pyenchant pygeoip ];
- disabled = isPyPy || isPy26 || isPy27;
+ disabled = isPyPy || isPy27;
checkPhase = ''
${python.interpreter} test/*.py #*/
@@ -14036,7 +14023,7 @@ in {
src = py;
format = "other";
- disabled = isPy26 || isPyPy;
+ disabled = isPyPy;
installPhase = ''
# Move the tkinter module
@@ -14819,11 +14806,6 @@ EOF
substituteInPlace setup.py --replace "nose<1.3.0" "nose"
'';
- # XXX: skipping two tests fails in python2.6
- doCheck = ! isPy26;
-
- buildInputs = with self; optionals isPy26 [ ordereddict unittest2 ];
-
propagatedBuildInputs = with self; [
nose
webob
@@ -15265,7 +15247,7 @@ EOF
sha256 = "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank";
};
- propagatedBuildInputs = with self; [ zope_location zope_event zope_interface zope_testing ] ++ optional isPy26 ordereddict;
+ propagatedBuildInputs = with self; [ zope_location zope_event zope_interface zope_testing ];
# ImportError: No module named 'zope.event'
# even though zope_event has been included.
@@ -16869,7 +16851,7 @@ EOF
jenkins-job-builder = buildPythonPackage rec {
name = "jenkins-job-builder-2.0.0.0b2";
- disabled = ! (isPy26 || isPy27);
+ disabled = !isPy27;
src = pkgs.fetchurl {
url = "mirror://pypi/j/jenkins-job-builder/${name}.tar.gz";
@@ -16891,10 +16873,6 @@ EOF
pyyaml
six
stevedore
- ] ++ optionals isPy26 [
- ordereddict
- argparse
- ordereddict
];
meta = {