Skip to content

Commit

Permalink
Merge pull request #33204 from NixOS/python-unstable
Browse files Browse the repository at this point in the history
Python: upgrade package set
  • Loading branch information
FRidh committed Dec 31, 2017
2 parents 1fcd92c + 3cf4d23 commit a09a320
Show file tree
Hide file tree
Showing 164 changed files with 1,240 additions and 879 deletions.
24 changes: 16 additions & 8 deletions pkgs/applications/misc/haxor-news/default.nix
@@ -1,15 +1,17 @@
{ stdenv, fetchurl, pythonPackages }:
{ stdenv, fetchurl, python }:

pythonPackages.buildPythonApplication rec {
version = "0.4.2";
name = "haxor-news-${version}";
with python.pkgs;

src = fetchurl {
url = "https://github.com/donnemartin/haxor-news/archive/${version}.tar.gz";
sha256 = "0543k5ys044f2a1q8k36djnnq2h2dffnwbkva9snjjy30nlwwdgs";
buildPythonApplication rec {
pname = "haxor-news";
version = "0.4.3";

src = fetchPypi {
inherit pname version;
sha256 = "5b9af8338a0f8b95a8133b66ef106553823813ac171c0aefa3f3f2dbeb4d7f88";
};

propagatedBuildInputs = with pythonPackages; [
propagatedBuildInputs = [
click
colorama
requests
Expand All @@ -18,6 +20,12 @@ pythonPackages.buildPythonApplication rec {
six
];

checkInputs = [ mock ];

checkPhase = ''
${python.interpreter} -m unittest discover -s tests -v
'';

meta = with stdenv.lib; {
homepage = https://github.com/donnemartin/haxor-news;
description = "Browse Hacker News like a haxor";
Expand Down
27 changes: 18 additions & 9 deletions pkgs/applications/office/watson/default.nix
@@ -1,27 +1,36 @@
{ stdenv, pythonPackages }:
{ stdenv, pythonPackages, fetchpatch }:

pythonPackages.buildPythonApplication rec {
with pythonPackages;

buildPythonApplication rec {
pname = "td-watson";
name = "${pname}-${version}";
version = "1.4.0";
version = "1.5.2";

src = pythonPackages.fetchPypi {
src = fetchPypi {
inherit version pname;
sha256 = "1py0g4990jmvq0dn7jasda7f10kzr41bix46hnbyc1rshjzc17hq";
sha256 = "6e03d44a9278807fe5245e9ed0943f13ffb88e11249a02655c84cb86260b27c8";
};

# uses tox, test invocation fails
doCheck = true;
checkPhase = ''
py.test -vs tests
'';
checkInputs = with pythonPackages; [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
propagatedBuildInputs = with pythonPackages; [ requests click arrow ];

patches = [
(fetchpatch {
url = https://github.com/TailorDev/Watson/commit/f5760c71cbc22de4e12ede8f6f7257515a9064d3.patch;
sha256 = "0s9h26915ilpbd0qhmvk77r3gmrsdrl5l7dqxj0l5q66fp0z6b0g";
})
];

checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
propagatedBuildInputs = [ requests click arrow ];

meta = with stdenv.lib; {
homepage = https://tailordev.github.io/Watson/;
description = "A wonderful CLI to track your time!";
license = licenses.mit;
maintainers = with maintainers; [ mguentner ] ;
};
}
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/APScheduler/default.nix
Expand Up @@ -20,12 +20,12 @@

buildPythonPackage rec {
pname = "APScheduler";
version = "3.4.0";
version = "3.5.0";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "b51118a8ed014104f7e440456dcbd90f2015aea7bcc34c57e307fb34bc746316";
sha256 = "1ce44d5132b7951f4614067c88ca34cfee1ff97f6f0892581d79b636d83eab89";
};

buildInputs = [
Expand Down
32 changes: 32 additions & 0 deletions pkgs/development/python-modules/Mako/default.nix
@@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, markupsafe
, nose
, mock
, pytest
, isPyPy
}:

buildPythonPackage rec {
pname = "Mako";
version = "1.0.7";

src = fetchPypi {
inherit pname version;
sha256 = "4e02fde57bd4abb5ec400181e4c314f56ac3e49ba4fb8b0d50bba18cb27d25ae";
};

checkInputs = [ markupsafe nose mock pytest ];
propagatedBuildInputs = [ markupsafe ];

doCheck = !isPyPy; # https://bitbucket.org/zzzeek/mako/issue/238/2-tests-failed-on-pypy-24-25

meta = {
description = "Super-fast templating language";
homepage = http://www.makotemplates.org;
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ domenkozar ];
};
}
10 changes: 5 additions & 5 deletions pkgs/development/python-modules/MechanicalSoup/default.nix
@@ -1,29 +1,29 @@
{ fetchPypi, buildPythonPackage, lib
, requests, beautifulsoup4, six
, requests, beautifulsoup4, six, lxml
, pytestrunner, requests-mock, pytestcov, pytest
}:


buildPythonPackage rec {
name = "${pname}-${version}";
pname = "MechanicalSoup";
version = "0.8.0";
version = "0.9.0.post4";

src = fetchPypi {
inherit pname version;
sha256 = "38a6ca35428196be94f87f8f036ee4a88b1418d1f77e5634ad92acfaa22c28da";
sha256 = "ce8f822afbc9bef1499be417e8d5deecd0cd32606420165700e89477955f03ab";
};

checkInputs = [ pytest pytestrunner requests-mock pytestcov ];

propagatedBuildInputs = [ requests beautifulsoup4 six ];
propagatedBuildInputs = [ lxml requests beautifulsoup4 six ];

# Requires network
doCheck = false;

postPatch = ''
# Is in setup_requires but not used in setup.py...
substituteInPlace setup.py --replace "'pytest-runner'," ""
substituteInPlace setup.py --replace "'pytest-runner'" ""
'';

meta = with lib; {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/Nikola/default.nix
Expand Up @@ -30,7 +30,7 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Nikola";
version = "7.8.10";
version = "7.8.11";

# Nix contains only Python 3 supported version of doit, which is a dependency
# of Nikola. Python 2 support would require older doit 0.29.0 (which on the
Expand All @@ -47,7 +47,7 @@ buildPythonPackage rec {

src = fetchPypi {
inherit pname version;
sha256 = "e242c3d0dd175d95a0baf5268b108081ba160b83ceafec8c9bc2ec0a24a56537";
sha256 = "10d95b3af84e61496ef729665eafa2235fd0fd4cc6c57644dd0f2c19a968dd0f";
};

meta = {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/Theano/default.nix
Expand Up @@ -35,13 +35,13 @@ let
in buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Theano";
version = "0.9.0";
version = "1.0.1";

disabled = isPyPy || pythonOlder "2.6" || (isPy3k && pythonOlder "3.3");

src = fetchPypi {
inherit pname version;
sha256 = "05xwg00da8smkvkh6ywbywqzj8dw7x840jr74wqhdy9icmqncpbl";
sha256 = "88d8aba1fe2b6b75eacf455d01bc7e31e838c5a0fb8c13dde2d9472495ff4662";
};

postPatch = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/absl-py/default.nix
Expand Up @@ -6,12 +6,12 @@

buildPythonPackage rec {
pname = "absl-py";
version = "0.1.5";
version = "0.1.7";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "94943ed0cd77077fe2d18e79b2f28d3e92f585f7d1c6edc75e640121f3c5d580";
sha256 = "4ea22ae860f3a556511291e7f1284942199c81377f47ec4248163defb1b9e6ee";
};

propagatedBuildInputs = [ six ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/aenum/default.nix
Expand Up @@ -2,12 +2,12 @@

buildPythonPackage rec {
pname = "aenum";
version = "2.0.8";
version = "2.0.9";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "3209fa41b8c41345442e8d9b5158a57d3e96d84c3d5ebbe8e521e1e2eff1598d";
sha256 = "d98bc55136d696fcf323760c3db0de489da9e41fd51283fa6f90205deb85bf6a";
};

doCheck = !isPy3k;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/aiohttp/default.nix
Expand Up @@ -13,12 +13,12 @@

buildPythonPackage rec {
pname = "aiohttp";
version = "2.3.3";
version = "2.3.7";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "0a2e33e90560dacb819b095b9d9611597925d75d1b93dd9490055d3826d98a82";
sha256 = "fe294df38e9c67374263d783a7a29c79372030f5962bd5734fa51c6f4bbfee3b";
};

disabled = pythonOlder "3.4";
Expand Down
11 changes: 5 additions & 6 deletions pkgs/development/python-modules/arrow/default.nix
@@ -1,23 +1,22 @@
{ stdenv, buildPythonPackage, fetchPypi
, nose, chai, simplejson
, nose, chai, simplejson, backports_functools_lru_cache
, dateutil }:

buildPythonPackage rec {
name = "${pname}-${version}";
pname = "arrow";
version = "0.10.0";
version = "0.12.0";

src = fetchPypi {
inherit pname version;
sha256 = "08n7q2l69hlainds1byd4lxhwrq7zsw7s640zkqc3bs5jkq0cnc0";
sha256 = "a15ecfddf334316e3ac8695e48c15d1be0d6038603b33043930dcf0e675c86ee";
};

checkPhase = ''
nosetests --cover-package=arrow
'';

buildInputs = [ nose chai simplejson ];
propagatedBuildInputs = [ dateutil ];
checkInputs = [ nose chai simplejson ];
propagatedBuildInputs = [ dateutil backports_functools_lru_cache ];

meta = with stdenv.lib; {
description = "Python library for date manipulation";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/asgiref/default.nix
@@ -1,12 +1,12 @@
{ stdenv, buildPythonPackage, fetchurl, six }:
buildPythonPackage rec {
version = "1.1.2";
version = "2.0.1";
pname = "asgiref";
name = "${pname}-${version}";

src = fetchurl {
url = "mirror://pypi/a/asgiref/${name}.tar.gz";
sha256 = "8b46c3d6e2ad354d9da3cfb9873f9bd46fe1b768fbc11065275ba5430a46700c";
sha256 = "c3d70c473a2b7e525e18e68504630943e107f5b32f440c00c8543f94f565c855";
};

propagatedBuildInputs = [ six ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/asn1crypto/default.nix
Expand Up @@ -5,12 +5,12 @@

buildPythonPackage rec {
pname = "asn1crypto";
version = "0.23.0";
version = "0.24.0";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "0874981329cfebb366d6584c3d16e913f2a0eb026c9463efcc4aaf42a9d94d70";
sha256 = "9d5c20441baf0cb60a4ac34cc447c6c189024b6b4c6cd7877034f4965c464e49";
};

# No tests included
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/astor/default.nix
Expand Up @@ -2,12 +2,12 @@

buildPythonPackage rec {
pname = "astor";
version = "0.5";
version = "0.6.2";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa";
sha256 = "ff6d2e2962d834acb125cc4dcc80c54a8c17c253f4cc9d9c43b5102a560bb75d";
};

meta = with stdenv.lib; {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/astroid/default.nix
Expand Up @@ -6,11 +6,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "astroid";
version = "1.5.3";
version = "1.6.0";

src = fetchPypi {
inherit pname version;
sha256 = "492c2a2044adbf6a84a671b7522e9295ad2f6a7c781b899014308db25312dd35";
sha256 = "71dadba2110008e2c03f9fde662ddd2053db3c0489d0e03c94e828a0399edd4f";
};

propagatedBuildInputs = [ logilab_common six lazy-object-proxy wrapt ]
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/astropy/default.nix
Expand Up @@ -7,13 +7,13 @@
buildPythonPackage rec {

pname = "astropy";
version = "2.0.2";
version = "2.0.3";

name = "${pname}-${version}";
doCheck = false; #Some tests are failing. More importantly setup.py hangs on completion. Needs fixing with a proper shellhook.
src = fetchPypi {
inherit pname version;
sha256 = "4544a422b1173d79b2d65ba74c627f04a5fd8530d97fb604752d657d754e103d";
sha256 = "fdfc0248f6250798ed6d1327be609cb901db89ae01fc768cfbc9e263bdf56f4f";
};

propagatedBuildInputs = [ pytest numpy ]; # yes it really has pytest in install_requires
Expand Down
10 changes: 6 additions & 4 deletions pkgs/development/python-modules/attrs/default.nix
Expand Up @@ -2,24 +2,26 @@
, pympler, coverage, six, clang }:

buildPythonPackage rec {
name = "${pname}-${version}";
pname = "attrs";
version = "17.2.0";
version = "17.4.0";

src = fetchPypi {
inherit pname version;
sha256 = "04gx08ikpk26wnq22f7l42gapcvk8iz1512r927k6sadz6cinkax";
sha256 = "1c7960ccfd6a005cd9f7ba884e6316b5e430a3f1a6c37c5f87d8b43f83b54ec9";
};

# macOS needs clang for testing
buildInputs = [
checkInputs = [
pytest hypothesis zope_interface pympler coverage six
] ++ lib.optionals (stdenv.isDarwin) [ clang ];

checkPhase = ''
py.test
'';

# To prevent infinite recursion with pytest
doCheck = false;

meta = with lib; {
description = "Python attributes without boilerplate";
homepage = https://github.com/hynek/attrs;
Expand Down

0 comments on commit a09a320

Please sign in to comment.