git.iko.soy/typeable/nixpkgs
on master help sign in
Merge commit 'a0f8e3a' into HEAD
commit4c88132d25a1d793da5df67ce0bececd7b864ff5 authorFrederik Rietdijk <fridh@fridh.nl> dateMon 22 Jan 2018, 16:08 (9 years ago) parent92c0720a0f8e3a
102 files changed+836−608
pkgs/applications/networking/mailreaders/afew/default.nix+28 pkgs/applications/version-management/nbstripout/default.nix+1−1 pkgs/development/interpreters/python/build-python-package-setuptools.nix+4−4 pkgs/development/interpreters/python/cpython/2.7/default.nix+1−1 pkgs/development/interpreters/python/cpython/3.4/default.nix+1−1 pkgs/development/interpreters/python/cpython/3.5/default.nix+1−1 pkgs/development/interpreters/python/cpython/3.6/default.nix+1−1 pkgs/development/interpreters/python/pypy/2.7/default.nix+1−1 pkgs/development/libraries/mesa/default.nix+1−2 pkgs/development/python-modules/APScheduler/default.nix+2−2 pkgs/development/python-modules/absl-py/default.nix+2−2 pkgs/development/python-modules/afew/default.nix−34 pkgs/development/python-modules/aiohttp/default.nix+2−2 pkgs/development/python-modules/alembic/default.nix+2−2 pkgs/development/python-modules/ansicolors/default.nix+10−4 pkgs/development/python-modules/arrow/default.nix+2−2 pkgs/development/python-modules/asana/default.nix+2−2 pkgs/development/python-modules/asgiref/default.nix+2−2 pkgs/development/python-modules/bleach/default.nix+44 pkgs/development/python-modules/botocore/default.nix+2−2 pkgs/development/python-modules/bpython/default.nix−1 pkgs/development/python-modules/certifi/default.nix+2−2 pkgs/development/python-modules/cffi/default.nix+2−2 pkgs/development/python-modules/click-threading/default.nix+34 pkgs/development/python-modules/crayons/default.nix+19 pkgs/development/python-modules/curtsies/default.nix−2 pkgs/development/python-modules/dask/default.nix+2−2 pkgs/development/python-modules/decorator/default.nix+2−2 pkgs/development/python-modules/devpi-common/default.nix+2−2 pkgs/development/python-modules/django-ipware/default.nix+2−2 pkgs/development/python-modules/django_guardian/default.nix+1−1 pkgs/development/python-modules/ecpy/default.nix+2−2 pkgs/development/python-modules/elasticsearch/default.nix+2−2 pkgs/development/python-modules/eve/default.nix+2−2 pkgs/development/python-modules/flask-common/default.nix+20 pkgs/development/python-modules/flask-limiter/default.nix+19 pkgs/development/python-modules/fonttools/default.nix+2−2 pkgs/development/python-modules/google_api_core/default.nix+2−2 pkgs/development/python-modules/google_auth/default.nix+2−2 pkgs/development/python-modules/grpcio/default.nix+2−2 pkgs/development/python-modules/guzzle_sphinx_theme/default.nix−3 pkgs/development/python-modules/httpbin/default.nix+16−2 pkgs/development/python-modules/hypothesis/default.nix+6−6 pkgs/development/python-modules/intervaltree/default.nix+1−3 pkgs/development/python-modules/ipykernel/default.nix+2−2 pkgs/development/python-modules/keras/default.nix+2−2 pkgs/development/python-modules/keyring/default.nix+4−4 pkgs/development/python-modules/libagent/default.nix+2−2 pkgs/development/python-modules/libtmux/default.nix+6−4 pkgs/development/python-modules/limits/default.nix+21 pkgs/development/python-modules/maya/default.nix+32 pkgs/development/python-modules/mdp/default.nix+2−3 pkgs/development/python-modules/meinheld/default.nix+22 pkgs/development/python-modules/moto/default.nix+2−2 pkgs/development/python-modules/multidict/default.nix+5−5 pkgs/development/python-modules/natsort/default.nix+1−3 pkgs/development/python-modules/natsort/setup.patch−20 pkgs/development/python-modules/nibabel/default.nix+36 pkgs/development/python-modules/nimfa/default.nix+2−2 pkgs/development/python-modules/nipype/default.nix+68 pkgs/development/python-modules/node-semver/default.nix+2−2 pkgs/development/python-modules/pendulum/default.nix+22 pkgs/development/python-modules/phonenumbers/default.nix+2−2 pkgs/development/python-modules/progressbar2/default.nix+3−1 pkgs/development/python-modules/prov/default.nix+37 pkgs/development/python-modules/pydotplus/default.nix+28 pkgs/development/python-modules/pylast/default.nix+2−2 pkgs/development/python-modules/pylti/default.nix+51 pkgs/development/python-modules/pyodbc/default.nix+2−2 pkgs/development/python-modules/pyopencl/default.nix+2−2 pkgs/development/python-modules/pyte/default.nix−2 pkgs/development/python-modules/pytest-flake8/default.nix+1−1 pkgs/development/python-modules/pytest-httpbin/default.nix+3−7 pkgs/development/python-modules/pytest-xdist/default.nix+2−2 pkgs/development/python-modules/pytest/2_7.nix−30 pkgs/development/python-modules/pytest/2_8.nix−30 pkgs/development/python-modules/pytest/2_9.nix−30 pkgs/development/python-modules/pytest/3_0.nix−27 pkgs/development/python-modules/pytest/3_2.nix−27 pkgs/development/python-modules/pytestrunner/default.nix+19 pkgs/development/python-modules/python-utils/default.nix−1 pkgs/development/python-modules/pytzdata/default.nix+20 pkgs/development/python-modules/raven/default.nix+5−6 pkgs/development/python-modules/regex/default.nix+2−2 pkgs/development/python-modules/schema/default.nix+2−2 pkgs/development/python-modules/secp256k1/default.nix+48 pkgs/development/python-modules/sphinx/default.nix+2−2 pkgs/development/python-modules/sqlalchemy/default.nix+4−4 pkgs/development/python-modules/stripe/default.nix+2−2 pkgs/development/python-modules/tifffile/default.nix+2−2 pkgs/development/python-modules/tiros/default.nix+2−2 pkgs/development/python-modules/twilio/default.nix−2 pkgs/development/python-modules/uncertainties/default.nix+2−2 pkgs/development/python-modules/whitenoise/default.nix+20 pkgs/development/python-modules/xvfbwrapper/default.nix+26 pkgs/development/python-modules/yapf/default.nix+2−2 pkgs/development/python-modules/yarl/default.nix+2−2 pkgs/tools/admin/awscli/default.nix+4−4 pkgs/tools/backup/borg/default.nix−3 pkgs/tools/misc/tmuxp/default.nix+15−12 pkgs/top-level/all-packages.nix+2 pkgs/top-level/python-packages.nix+40−232
pkgs/applications/networking/mailreaders/afew/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv, pythonPackages, notmuch }:
2+
3+pythonPackages.buildPythonApplication rec {
4+ pname = "afew";
5+ version = "1.2.0";
6+
7+ src = pythonPackages.fetchPypi {
8+ inherit pname version;
9+ sha256 = "121w7bd53xyibllxxbfykjj76n81kn1vgjqd22izyh67y8qyyk5r";
10+ };
11+
12+ buildInputs = with pythonPackages; [ setuptools_scm ];
13+
14+ propagatedBuildInputs = with pythonPackages; [
15+ pythonPackages.notmuch chardet
16+ ] ++ stdenv.lib.optional (!pythonPackages.isPy3k) subprocess32;
17+
18+ makeWrapperArgs = [
19+ ''--prefix PATH ':' "${notmuch}/bin"''
20+ ];
21+
22+ meta = with stdenv.lib; {
23+ homepage = https://github.com/afewmail/afew;
24+ description = "An initial tagging script for notmuch mail";
25+ license = licenses.isc;
26+ maintainers = with maintainers; [ garbas andir flokli ];
27+ };
28+}
pkgs/applications/version-management/nbstripout/default.nix+1−1
@@ -25,7 +25,7 @@ buildPythonApplication rec {
2525
2626 # ignore flake8 tests for the nix wrapped setup.py
2727 checkPhase = ''
28− PATH=$PATH:$out/bin:${mercurial}/bin pytest --ignore=nix_run_setup.py .
28+ PATH=$PATH:$out/bin:${mercurial}/bin pytest .
2929 '';
3030
3131 meta = {
pkgs/development/interpreters/python/build-python-package-setuptools.nix+4−4
@@ -21,18 +21,18 @@ let
2121 setuppy = ./run_setup.py;
2222
2323in attrs // {
24− # we copy nix_run_setup.py over so it's executed relative to the root of the source
24+ # we copy nix_run_setup over so it's executed relative to the root of the source
2525 # many project make that assumption
2626 buildPhase = attrs.buildPhase or ''
2727 runHook preBuild
28− cp ${setuppy} nix_run_setup.py
29− ${python.interpreter} nix_run_setup.py ${lib.optionalString (setupPyBuildFlags != []) ("build_ext " + (lib.concatStringsSep " " setupPyBuildFlags))} bdist_wheel
28+ cp ${setuppy} nix_run_setup
29+ ${python.interpreter} nix_run_setup ${lib.optionalString (setupPyBuildFlags != []) ("build_ext " + (lib.concatStringsSep " " setupPyBuildFlags))} bdist_wheel
3030 runHook postBuild
3131 '';
3232
3333 installCheckPhase = attrs.checkPhase or ''
3434 runHook preCheck
35− ${python.interpreter} nix_run_setup.py test
35+ ${python.interpreter} nix_run_setup test
3636 runHook postCheck
3737 '';
3838
pkgs/development/interpreters/python/cpython/2.7/default.nix+1−1
@@ -227,7 +227,7 @@ in stdenv.mkDerivation {
227227 '';
228228 license = stdenv.lib.licenses.psfl;
229229 platforms = stdenv.lib.platforms.all;
230− maintainers = with stdenv.lib.maintainers; [ chaoflow domenkozar ];
230+ maintainers = with stdenv.lib.maintainers; [ fridh ];
231231 # Higher priority than Python 3.x so that `/bin/python` points to `/bin/python2`
232232 # in case both 2 and 3 are installed.
233233 priority = -100;
pkgs/development/interpreters/python/cpython/3.4/default.nix+1−1
@@ -185,6 +185,6 @@ in stdenv.mkDerivation {
185185 '';
186186 license = licenses.psfl;
187187 platforms = with platforms; linux ++ darwin;
188− maintainers = with maintainers; [ chaoflow domenkozar cstrahan ];
188+ maintainers = with maintainers; [ fridh ];
189189 };
190190}
pkgs/development/interpreters/python/cpython/3.5/default.nix+1−1
@@ -178,6 +178,6 @@ in stdenv.mkDerivation {
178178 '';
179179 license = licenses.psfl;
180180 platforms = with platforms; linux ++ darwin;
181− maintainers = with maintainers; [ chaoflow domenkozar cstrahan ];
181+ maintainers = with maintainers; [ fridh ];
182182 };
183183}
pkgs/development/interpreters/python/cpython/3.6/default.nix+1−1
@@ -178,6 +178,6 @@ in stdenv.mkDerivation {
178178 '';
179179 license = licenses.psfl;
180180 platforms = with platforms; linux ++ darwin;
181− maintainers = with maintainers; [ chaoflow domenkozar cstrahan kragniz ];
181+ maintainers = with maintainers; [ fridh kragniz ];
182182 };
183183}
pkgs/development/interpreters/python/pypy/2.7/default.nix+1−1
@@ -139,6 +139,6 @@ in stdenv.mkDerivation rec {
139139 description = "Fast, compliant alternative implementation of the Python language (2.7.13)";
140140 license = licenses.mit;
141141 platforms = platforms.linux;
142− maintainers = with maintainers; [ domenkozar ];
142+ maintainers = with maintainers; [ ];
143143 };
144144}
pkgs/development/libraries/mesa/default.nix+1−2
@@ -98,7 +98,7 @@ stdenv.mkDerivation {
9898
9999 # TODO: Figure out how to enable opencl without having a runtime dependency on clang
100100 configureFlags = [
101− "--sysconfdir=/etc"
101+ "--sysconfdir=${driverLink}/etc"
102102 "--localstatedir=/var"
103103 "--with-dri-driverdir=$(drivers)/lib/dri"
104104 "--with-dri-searchpath=${driverLink}/lib/dri"
@@ -197,7 +197,6 @@ stdenv.mkDerivation {
197197 '';
198198
199199 # TODO:
200− # @vcunat isn't sure if drirc will be found when in $out/etc/;
201200 # check $out doesn't depend on llvm: builder failures are ignored
202201 # for some reason grep -qv '${llvmPackages.llvm}' -R "$out";
203202 postFixup = ''
pkgs/development/python-modules/APScheduler/default.nix+2−2
@@ -20,12 +20,12 @@
2020
2121buildPythonPackage rec {
2222 pname = "APScheduler";
23− version = "3.5.0";
23+ version = "3.5.1";
2424 name = "${pname}-${version}";
2525
2626 src = fetchPypi {
2727 inherit pname version;
28− sha256 = "1ce44d5132b7951f4614067c88ca34cfee1ff97f6f0892581d79b636d83eab89";
28+ sha256 = "952c8f46a11f32b9d5bfbe3e347dac2cdf0680d8b4799590dc9c3a9865b73b65";
2929 };
3030
3131 buildInputs = [
pkgs/development/python-modules/absl-py/default.nix+2−2
@@ -6,12 +6,12 @@
66
77buildPythonPackage rec {
88 pname = "absl-py";
9− version = "0.1.7";
9+ version = "0.1.9";
1010 name = "${pname}-${version}";
1111
1212 src = fetchPypi {
1313 inherit pname version;
14− sha256 = "4ea22ae860f3a556511291e7f1284942199c81377f47ec4248163defb1b9e6ee";
14+ sha256 = "1c787e3bc7ef8fea7a8a79cf36b0c550b4bd66e13c05d1352fbc5786488befb0";
1515 };
1616
1717 propagatedBuildInputs = [ six ];
pkgs/development/python-modules/afew/default.nixdeleted−34
@@ -1,34 +0,0 @@
1−{ stdenv, buildPythonPackage, fetchFromGitHub
2−, isPy3k , setuptools_scm, notmuch, chardet, subprocess32 }:
3−
4−buildPythonPackage rec {
5− pname = "afew";
6− version = "1.2.0";
7− name = "${pname}-${version}";
8−
9− src = fetchFromGitHub {
10− owner = "afewmail";
11− repo = "afew";
12− rev = "3405475276a2433e1238be330e538ebf2a976e5e";
13− sha256 = "1h974avnfc6636az130yjqwm28z3aaqm49bjhpy3razx6zvyhzlf";
14− };
15−
16− buildInputs = [ setuptools_scm ];
17− SETUPTOOLS_SCM_PRETEND_VERSION = "${version}";
18−
19− propagatedBuildInputs = [
20− notmuch
21− chardet
22− ] ++ stdenv.lib.optional (!isPy3k) subprocess32;
23−
24− postInstall = ''
25− wrapProgram $out/bin/afew \
26− --prefix LD_LIBRARY_PATH : ${notmuch}/lib
27− '';
28−
29− meta = with stdenv.lib; {
30− homepage = https://github.com/afewmail/afew;
31− description = "An initial tagging script for notmuch mail";
32− maintainers = with maintainers; [ garbas andir flokli ];
33− };
34−}
pkgs/development/python-modules/aiohttp/default.nix+2−2
@@ -13,12 +13,12 @@
1313
1414buildPythonPackage rec {
1515 pname = "aiohttp";
16− version = "2.3.7";
16+ version = "2.3.9";
1717 name = "${pname}-${version}";
1818
1919 src = fetchPypi {
2020 inherit pname version;
21− sha256 = "fe294df38e9c67374263d783a7a29c79372030f5962bd5734fa51c6f4bbfee3b";
21+ sha256 = "6003bed78dc591d31bd89ef16e630a1c4fd97a3cd17b975ec945c0f46d6fc881";
2222 };
2323
2424 disabled = pythonOlder "3.4";
pkgs/development/python-modules/alembic/default.nix+2−2
@@ -6,11 +6,11 @@
66buildPythonPackage rec {
77 name = "${pname}-${version}";
88 pname = "alembic";
9− version = "0.9.6";
9+ version = "0.9.7";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "042851ebe9efa07be6dc1395b1793b6c1d8964a39b73a0ce1649e2bcd41ea732";
13+ sha256 = "46f4849c6dce69f54dd5001b3215b6a983dee6b17512efee10e237fa11f20cfa";
1414 };
1515
1616 buildInputs = [ pytest pytestcov mock coverage ];
pkgs/development/python-modules/ansicolors/default.nix+10−4
@@ -1,15 +1,21 @@
1−{ stdenv, buildPythonPackage, fetchPypi }:
1+{ stdenv, buildPythonPackage, fetchPypi, pytest }:
22
33buildPythonPackage rec {
44 pname = "ansicolors";
5− version = "1.0.2";
6− name = "${pname}-${version}";
5+ version = "1.1.8";
76
87 src = fetchPypi {
98 inherit pname version;
10− sha256 = "02lmh2fbqcwr98cq13l9ql0fvyad1dcb3ap3c5xq9qwjp45m6r3n";
9+ extension = "zip";
10+ sha256 = "99f94f5e3348a0bcd43c82e5fc4414013ccc19d70bd939ad71e0133ce9c372e0";
1111 };
1212
13+ checkInputs = [ pytest ];
14+
15+ checkPhase = ''
16+ py.test
17+ '';
18+
1319 meta = with stdenv.lib; {
1420 homepage = https://github.com/verigak/colors/;
1521 description = "ANSI colors for Python";
pkgs/development/python-modules/arrow/default.nix+2−2
@@ -4,11 +4,11 @@
44
55buildPythonPackage rec {
66 pname = "arrow";
7− version = "0.12.0";
7+ version = "0.12.1";
88
99 src = fetchPypi {
1010 inherit pname version;
11− sha256 = "a15ecfddf334316e3ac8695e48c15d1be0d6038603b33043930dcf0e675c86ee";
11+ sha256 = "a558d3b7b6ce7ffc74206a86c147052de23d3d4ef0e17c210dd478c53575c4cd";
1212 };
1313
1414 checkPhase = ''
pkgs/development/python-modules/asana/default.nix+2−2
@@ -4,7 +4,7 @@
44
55buildPythonPackage rec {
66 pname = "asana";
7− version = "0.6.5";
7+ version = "0.6.7";
88 name = "${pname}-${version}";
99
1010 meta = {
@@ -15,7 +15,7 @@ buildPythonPackage rec {
1515
1616 src = fetchPypi {
1717 inherit pname version;
18− sha256 = "eab8d24c2a4670b541b75da2f4bf5b995fe71559c1338da53ce9039f7b19c9a0";
18+ sha256 = "d576601116764050c4cf63b417f1c24700b76cf6686f0e51e6b0b77d450e7973";
1919 };
2020
2121 checkInputs = [ pytest ];
pkgs/development/python-modules/asgiref/default.nix+2−2
@@ -1,12 +1,12 @@
11{ stdenv, buildPythonPackage, fetchurl, six }:
22buildPythonPackage rec {
3− version = "2.0.1";
3+ version = "2.1.0";
44 pname = "asgiref";
55 name = "${pname}-${version}";
66
77 src = fetchurl {
88 url = "mirror://pypi/a/asgiref/${name}.tar.gz";
9− sha256 = "c3d70c473a2b7e525e18e68504630943e107f5b32f440c00c8543f94f565c855";
9+ sha256 = "2bfd70fcc51df4036768b91d7b13524090dc8f366d79fa44ba2b0aeb47306344";
1010 };
1111
1212 propagatedBuildInputs = [ six ];
pkgs/development/python-modules/bleach/default.nixnew file+44
@@ -0,0 +1,44 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pytest
5+, pytestrunner
6+, six
7+, html5lib
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "bleach";
12+ version = "2.1.2";
13+
14+ src = fetchPypi {
15+ inherit pname version;
16+ sha256 = "38fc8cbebea4e787d8db55d6f324820c7f74362b70db9142c1ac7920452d1a19";
17+ };
18+
19+ checkInputs = [ pytest pytestrunner ];
20+ propagatedBuildInputs = [ six html5lib ];
21+
22+ postPatch = ''
23+ substituteInPlace setup.py --replace ",<3dev" ""
24+ '';
25+
26+ meta = {
27+ description = "An easy, HTML5, whitelisting HTML sanitizer";
28+ longDescription = ''
29+ Bleach is an HTML sanitizing library that escapes or strips markup and
30+ attributes based on a white list. Bleach can also linkify text safely,
31+ applying filters that Django's urlize filter cannot, and optionally
32+ setting rel attributes, even on links already in the text.
33+
34+ Bleach is intended for sanitizing text from untrusted sources. If you
35+ find yourself jumping through hoops to allow your site administrators
36+ to do lots of things, you're probably outside the use cases. Either
37+ trust those users, or don't.
38+ '';
39+ homepage = https://github.com/mozilla/bleach;
40+ downloadPage = https://github.com/mozilla/bleach/releases;
41+ license = lib.licenses.asl20;
42+ maintainers = with lib.maintainers; [ prikhi ];
43+ };
44+}
pkgs/development/python-modules/botocore/default.nix+2−2
@@ -12,11 +12,11 @@
1212buildPythonPackage rec {
1313 name = "${pname}-${version}";
1414 pname = "botocore";
15− version = "1.8.26";
15+ version = "1.8.33";
1616
1717 src = fetchPypi {
1818 inherit pname version;
19− sha256 = "09j3b80l401hwc3ha0s2c2qq6z45x846an09ybc9y8cb1ky0kdlv";
19+ sha256 = "fa29ea54f26b1193682332d3b4cdde7aa79b4eaccb23f70e88672509c24546f4";
2020 };
2121
2222 propagatedBuildInputs = [
pkgs/development/python-modules/bpython/default.nix−1
@@ -3,7 +3,6 @@
33buildPythonPackage rec {
44 pname = "bpython";
55 version = "0.17";
6− name = "${pname}-${version}";
76
87 src = fetchPypi {
98 inherit pname version;
pkgs/development/python-modules/certifi/default.nix+2−2
@@ -5,12 +5,12 @@
55
66buildPythonPackage rec {
77 pname = "certifi";
8− version = "2017.7.27.1";
8+ version = "2018.1.18";
99 name = "${pname}-${version}";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "40523d2efb60523e113b44602298f0960e900388cf3bb6043f645cf57ea9e3f5";
13+ sha256 = "edbc3f203427eef571f79a7692bb160a2b0f7ccaa31953e99bd17e307cf63f7d";
1414 };
1515
1616 meta = {
pkgs/development/python-modules/cffi/default.nix+2−2
@@ -2,12 +2,12 @@
22
33if isPyPy then null else buildPythonPackage rec {
44 pname = "cffi";
5− version = "1.11.2";
5+ version = "1.11.4";
66 name = "${pname}-${version}";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "ab87dd91c0c4073758d07334c1e5f712ce8fe48f007b86f8238773963ee700a6";
10+ sha256 = "df9083a992b17a28cd4251a3f5c879e0198bb26c9e808c4647e0a18739f1d11d";
1111 };
1212
1313 patches = stdenv.lib.optional (isPy27 && stdenv.cc.isClang) ./clang.patch;
pkgs/development/python-modules/click-threading/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pytest
5+, click
6+, isPy3k
7+, futures
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "click-threading";
12+ version = "0.4.2";
13+
14+ src = fetchPypi {
15+ inherit pname version;
16+ sha256 = "400b0bb63d9096b6bf2806efaf742a1cc8b6c88e0484f0afe7d7a7f0e9870609";
17+ };
18+
19+ checkInputs = [ pytest ];
20+ propagatedBuildInputs = [ click ] ++ lib.optional (!isPy3k) futures;
21+
22+ checkPhase = ''
23+ py.test
24+ '';
25+
26+ # Tests are broken on 3.x
27+ doCheck = !isPy3k;
28+
29+ meta = {
30+ homepage = https://github.com/click-contrib/click-threading/;
31+ description = "Multithreaded Click apps made easy";
32+ license = lib.licenses.mit;
33+ };
34+}
pkgs/development/python-modules/crayons/default.nixnew file+19
@@ -0,0 +1,19 @@
1+{ stdenv, fetchPypi, buildPythonPackage, colorama }:
2+
3+buildPythonPackage rec {
4+ pname = "crayons";
5+ version = "0.1.2";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "17c0v0dkk8sn8kyyy2w7myxq9981glrbczh6h8sdcr750lb6j5sy";
10+ };
11+
12+ propagatedBuildInputs = [ colorama ];
13+
14+ meta = with stdenv.lib; {
15+ description = "TextUI colors for Python";
16+ homepage = https://github.com/kennethreitz/crayons;
17+ license = licenses.mit;
18+ };
19+}
pkgs/development/python-modules/curtsies/default.nix−2
@@ -3,8 +3,6 @@
33buildPythonPackage rec {
44 pname = "curtsies";
55 version = "0.2.11";
6− name = "${pname}-${version}";
7−
86 src = fetchPypi {
97 inherit pname version;
108 sha256 = "1vljmw3sy6lrqahhpyg4gk13mzcx3mwhvg8s41698ms3cpgkjipc";
pkgs/development/python-modules/dask/default.nix+2−2
@@ -12,12 +12,12 @@
1212
1313buildPythonPackage rec {
1414 pname = "dask";
15− version = "0.16.0";
15+ version = "0.16.1";
1616 name = "${pname}-${version}";
1717
1818 src = fetchPypi {
1919 inherit pname version;
20− sha256 = "40d150b73e3366c9521e9dde206046a66906330074f87be901b1e1013ce6cb73";
20+ sha256 = "07a0609ce053c8c2675037e6d5242899f90ecfb5262e1d0b2d7264fe8814099c";
2121 };
2222
2323 checkInputs = [ pytest ];
pkgs/development/python-modules/decorator/default.nix+2−2
@@ -5,11 +5,11 @@
55
66buildPythonPackage rec {
77 pname = "decorator";
8− version = "4.1.2";
8+ version = "4.2.1";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "7cb64d38cb8002971710c8899fbdfb859a23a364b7c99dab19d1f719c2ba16b5";
12+ sha256 = "7d46dd9f3ea1cf5f06ee0e4e1277ae618cf48dfb10ada7c8427cd46c42702a0e";
1313 };
1414
1515 meta = {
pkgs/development/python-modules/devpi-common/default.nix+2−2
@@ -2,12 +2,12 @@
22
33with pythonPackages;buildPythonPackage rec {
44 pname = "devpi-common";
5− version = "3.2.0";
5+ version = "3.2.1";
66 name = "${pname}-${version}";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "0rh119iw5hk41gsvbjr0wixvl1i4f0b1vcnw9ym35rmcp517z0wb";
10+ sha256 = "e9afa277a9b227d92335c49fab40be2e9bb112c0f4dda84906c14addb1ded2f7";
1111 };
1212
1313 propagatedBuildInputs = [ requests py ];
pkgs/development/python-modules/django-ipware/default.nix+2−2
@@ -3,7 +3,7 @@
33buildPythonPackage rec {
44 pname = "django-ipware";
55 name = "${pname}-${version}";
6− version = "1.1.6";
6+ version = "2.0.1";
77
88 meta = {
99 description = "A Django application to retrieve user's IP address";
@@ -13,7 +13,7 @@ buildPythonPackage rec {
1313
1414 src = fetchPypi {
1515 inherit pname version;
16− sha256 = "00zah4g2h93nbsijz556j97v9qkn9sxcia1a2wrwdwnav2fhzack";
16+ sha256 = "3fba8821298c8533ce5609debf31dc8a22f228c50e100f42d97637a9f9357d43";
1717 };
1818
1919 propagatedBuildInputs = [ django ];
pkgs/development/python-modules/django_guardian/default.nix+1−1
@@ -16,7 +16,7 @@ buildPythonPackage rec {
1616 propagatedBuildInputs = [ django six ];
1717
1818 checkPhase = ''
19− ${python.interpreter} nix_run_setup.py test --addopts="--ignore build"
19+ ${python.interpreter} nix_run_setup test --addopts="--ignore build"
2020 '';
2121
2222 meta = with stdenv.lib; {
pkgs/development/python-modules/ecpy/default.nix+2−2
@@ -5,11 +5,11 @@
55buildPythonPackage rec {
66 name = "${pname}-${version}";
77 pname = "ECPy";
8− version = "0.8.2";
8+ version = "0.8.3";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "0509a90714448ef47ef727cb7aee3415995c883c945e972521b5838fa4c50e24";
12+ sha256 = "ef3d95419d53368f52fb7d4b883b8df0dfc2dd19a76243422d24981c3e5f27bd";
1313 };
1414
1515 buildInputs = [ hidapi pycrypto pillow protobuf future ];
pkgs/development/python-modules/elasticsearch/default.nix+2−2
@@ -7,11 +7,11 @@
77
88buildPythonPackage (rec {
99 pname = "elasticsearch";
10− version = "6.0.0";
10+ version = "6.1.1";
1111
1212 src = fetchPypi {
1313 inherit pname version;
14− sha256 = "029q603g95fzkh87xkbxxmjfq5s9xkr9y27nfik6d4prsl0zxmlz";
14+ sha256 = "8d91a3fce12123a187b673f18c23bcffa6e7b49ba057555d59eeeded0ba15dce";
1515 };
1616
1717 # Check is disabled because running them destroy the content of the local cluster!
pkgs/development/python-modules/eve/default.nix+2−2
@@ -3,12 +3,12 @@
33
44buildPythonPackage rec {
55 pname = "Eve";
6− version = "0.7.5";
6+ version = "0.7.6";
77 name = "${pname}-${version}";
88
99 src = fetchPypi {
1010 inherit pname version;
11− sha256 = "dd4ffbc4725220ffdc8e32f8566c8870efaecdc238d0f96b18e1e83227eca55d";
11+ sha256 = "1ba84ab471bc2203a728fe4707a9279c44420224180b418601778125f51577ff";
1212 };
1313
1414 patches = [
pkgs/development/python-modules/flask-common/default.nixnew file+20
@@ -0,0 +1,20 @@
1+{ stdenv, fetchPypi, buildPythonPackage
2+, crayons, flask, flask_cache, gunicorn, maya, meinheld, whitenoise }:
3+
4+buildPythonPackage rec {
5+ pname = "Flask-Common";
6+ version = "0.2.0";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "1f6ibvkxpxgczxs4qcbh5bj8rf9ggggbagi2dkaphx5w29xbbys4";
11+ };
12+
13+ propagatedBuildInputs = [ crayons flask flask_cache gunicorn maya meinheld whitenoise ];
14+
15+ meta = with stdenv.lib; {
16+ description = "Flask extension with lots of common time-savers";
17+ homepage = https://github.com/kennethreitz/flask-common;
18+ license = licenses.asl20; # XXX: setup.py lists BSD but git repo has Apache 2.0 LICENSE
19+ };
20+}
pkgs/development/python-modules/flask-limiter/default.nixnew file+19
@@ -0,0 +1,19 @@
1+{ stdenv, fetchPypi, buildPythonPackage, flask, limits }:
2+
3+buildPythonPackage rec {
4+ pname = "Flask-Limiter";
5+ version = "1.0.1";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "1f0diannnc6rc0ngsh222lws3qf89wxm0aschaxxvwjvybf9iklc";
10+ };
11+
12+ propagatedBuildInputs = [ flask limits ];
13+
14+ meta = with stdenv.lib; {
15+ description = "Rate limiting for flask applications";
16+ homepage = https://flask-limiter.readthedocs.org/;
17+ license = licenses.mit;
18+ };
19+}
pkgs/development/python-modules/fonttools/default.nix+2−2
@@ -7,12 +7,12 @@
77
88buildPythonPackage rec {
99 pname = "fonttools";
10− version = "3.21.1";
10+ version = "3.21.2";
1111 name = "${pname}-${version}";
1212
1313 src = fetchPypi {
1414 inherit pname version;
15− sha256 = "1whama3bm34xp9l7f543sz2h9dms77ci820sdbxi5dl9krs4xkxb";
15+ sha256 = "96b636793c806206b1925e21224f4ab2ce5bea8ae0990ed181b8ac8d30848f47";
1616 extension = "zip";
1717 };
1818
pkgs/development/python-modules/google_api_core/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "google-api-core";
6− version = "0.1.3";
6+ version = "0.1.4";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "03bc4b1ab69c0e113af07e706edee50f583abe8219fe1e1d529dee191cb8e0bf";
10+ sha256 = "0144d467083ed54d2e8ccb4212d42c3724fe0b844b7d3a0ff85aea54b7ae8347";
1111 };
1212
1313 propagatedBuildInputs = [ google_auth protobuf googleapis_common_protos requests grpcio ];
pkgs/development/python-modules/google_auth/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "google-auth";
6− version = "1.2.1";
6+ version = "1.3.0";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "041qpwlvpawggasvbfpkx39mkg4dgvivj831x7kinidayrf46w3i";
10+ sha256 = "d119b5954393d81c4a986ab420cf2c8129fc95ff5c4c6bb8ab5c8f3e6446394f";
1111 };
1212
1313 checkInputs = [ pytest mock oauth2client flask requests urllib3 pytest-localserver ];
pkgs/development/python-modules/grpcio/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "grpcio";
6− version = "1.8.3";
6+ version = "1.8.4";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "6ce5fd3093ddc09a152981d5c477ac645eda19dfcc819e45d8c57da6b743bd53";
10+ sha256 = "88d87aab9c7889b3ab29dd74aac1a5493ed78b9bf5afba1c069c9dd5531f951d";
1111 };
1212
1313 propagatedBuildInputs = [ six protobuf ]
pkgs/development/python-modules/guzzle_sphinx_theme/default.nix−3
@@ -1,11 +1,8 @@
11{ stdenv, buildPythonPackage, sphinx, fetchPypi }:
22
3−
43buildPythonPackage rec {
5− name = "${pname}-${version}";
64 pname = "guzzle_sphinx_theme";
75 version = "0.7.11";
8−
96 src = fetchPypi {
107 inherit pname version;
118 sha256 = "1rnkzrrsbnifn3vsb4pfaia3nlvgvw6ndpxp7lzjrh23qcwid34v";
pkgs/development/python-modules/httpbin/default.nix+16−2
@@ -1,24 +1,38 @@
11{ stdenv
22, buildPythonPackage
33, fetchPypi
4+, fetchpatch
45, flask
6+, flask-common
7+, flask-limiter
58, markupsafe
69, decorator
710, itsdangerous
11+, raven
812, six
13+, brotlipy
914}:
1015
1116buildPythonPackage rec {
1217 pname = "httpbin";
1318 version = "0.6.2";
14− name = "${pname}-${version}";
1519
1620 src = fetchPypi {
1721 inherit pname version;
1822 sha256 = "0afa0486a76305cac441b5cc80d5d4ccd82b20875da7c5119ecfe616cefef45f";
1923 };
2024
21− propagatedBuildInputs = [ flask markupsafe decorator itsdangerous six ];
25+ patches = [
26+ # https://github.com/kennethreitz/httpbin/issues/403
27+ # https://github.com/kennethreitz/flask-common/issues/7
28+ # https://github.com/evansd/whitenoise/issues/166
29+ (fetchpatch {
30+ url = "https://github.com/javabrett/httpbin/commit/5735c888e1e51b369fcec41b91670a90535e661e.patch";
31+ sha256 = "167h8mscdjagml33dyqk8nziiz3dqbggnkl6agsirk5270nl5f7q";
32+ })
33+ ];
34+
35+ propagatedBuildInputs = [ brotlipy flask flask-common flask-limiter markupsafe decorator itsdangerous raven six ];
2236
2337 # No tests
2438 doCheck = false;
pkgs/development/python-modules/hypothesis/default.nix+6−6
@@ -1,6 +1,6 @@
11{ stdenv, buildPythonPackage, fetchFromGitHub, python
22, pythonOlder, pythonAtLeast, enum34
3−, doCheck ? true, pytest, pytest_xdist, flake8, flaky
3+, doCheck ? true, pytest, pytest_xdist, flake8, flaky, mock
44}:
55buildPythonPackage rec {
66 # http://hypothesis.readthedocs.org/en/latest/packaging.html
@@ -9,7 +9,7 @@ buildPythonPackage rec {
99 # pytz fake_factory django numpy pytest
1010 # If you need these, you can just add them to your environment.
1111
12− version = "3.11.1";
12+ version = "3.27.0";
1313 pname = "hypothesis";
1414 name = "${pname}-${version}";
1515
@@ -18,10 +18,10 @@ buildPythonPackage rec {
1818 owner = "HypothesisWorks";
1919 repo = "hypothesis-python";
2020 rev = "${version}";
21− sha256 = "0damf6zbm0db2a3gfwrbbj92yal576wpmhhchc0w0np8vdnax70n";
22− };
21+ sha256 = "1lvhd8jrwajyc5w1alb9vinsi97fjfqpkxkh8g8j527831lig0j0";
22+ };
2323
24− checkInputs = stdenv.lib.optionals doCheck [ pytest pytest_xdist flake8 flaky ];
24+ checkInputs = stdenv.lib.optionals doCheck [ pytest pytest_xdist flake8 flaky mock];
2525 propagatedBuildInputs = stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ];
2626
2727 inherit doCheck;
@@ -38,7 +38,7 @@ buildPythonPackage rec {
3838
3939 meta = with stdenv.lib; {
4040 description = "A Python library for property based testing";
41− homepage = https://github.com/DRMacIver/hypothesis;
41+ homepage = https://github.com/HypothesisWorks/hypothesis;
4242 license = licenses.mpl20;
4343 };
4444}
pkgs/development/python-modules/intervaltree/default.nix+1−3
@@ -17,10 +17,8 @@ buildPythonPackage rec {
1717
1818 checkPhase = ''
1919 runHook preCheck
20− # pytest will try to run tests for nix_run_setup.py / files in build/lib which fails
21− mv nix_run_setup.py run_setup
2220 rm build -rf
23− ${python.interpreter} run_setup test
21+ ${python.interpreter} nix_run_setup test
2422 runHook postCheck
2523 '';
2624
pkgs/development/python-modules/ipykernel/default.nix+2−2
@@ -13,12 +13,12 @@
1313
1414buildPythonPackage rec {
1515 pname = "ipykernel";
16− version = "4.7.0";
16+ version = "4.8.0";
1717 name = "${pname}-${version}";
1818
1919 src = fetchPypi {
2020 inherit pname version;
21− sha256 = "354986612a38f0555c43d5af2425e2a67506b63b313a0325e38904003b9d977b";
21+ sha256 = "dedc199df6a38725c732986dfa606c245fb8fe0fe999b33a0c305b73d80c6774";
2222 };
2323
2424 buildInputs = [ nose ] ++ lib.optional isPy27 mock;
pkgs/development/python-modules/keras/default.nix+2−2
@@ -5,12 +5,12 @@
55
66buildPythonPackage rec {
77 pname = "Keras";
8− version = "2.1.2";
8+ version = "2.1.3";
99 name = "${pname}-${version}";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "3ee56fc129d9d00b1916046e50056047836f97ada59df029e5661fb34442d5e8";
13+ sha256 = "7ca3a381523bad40a6922e88951a316664cb088fd01cea07e5ec8ada3327e3c7";
1414 };
1515
1616 checkInputs = [
pkgs/development/python-modules/keyring/default.nix+4−4
@@ -1,23 +1,23 @@
11{ stdenv, buildPythonPackage, fetchPypi
22, secretstorage
33, fs, gdata, python_keyczar, pyasn1, pycrypto, six, setuptools_scm
4−, mock, pytest_28, pytestrunner }:
4+, mock, pytest, pytestrunner }:
55
66buildPythonPackage rec {
77 name = "${pname}-${version}";
88 pname = "keyring";
9− version = "10.5.1";
9+ version = "10.6.0";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "f10674bb6ecbf82e2b713627c48ad0e84178e1c9d3dc1f0373261a0765402fb2";
13+ sha256 = "69c2b69d66a0db1165c6875c1833c52f4dc62179959692b30c8c4a4b8390d895";
1414 };
1515
1616 buildInputs = [
1717 fs gdata python_keyczar pyasn1 pycrypto six setuptools_scm
1818 ];
1919
20− checkInputs = [ mock pytest_28 pytestrunner ];
20+ checkInputs = [ mock pytest pytestrunner ];
2121
2222 propagatedBuildInputs = [ secretstorage ];
2323
pkgs/development/python-modules/libagent/default.nix+2−2
@@ -5,11 +5,11 @@
55buildPythonPackage rec {
66 name = "${pname}-${version}";
77 pname = "libagent";
8− version = "0.9.5";
8+ version = "0.9.7";
99
1010 src = fetchPypi{
1111 inherit pname version;
12− sha256 = "982b81c19dc9ee1158dc32fedbe1c36aff2b6872fa0dd42173b639b965ccfb2e";
12+ sha256 = "3ae14dc14859f7b4b92583ab0d40884ac07f26dbe00c7b747df2d50f4b1af098";
1313 };
1414
1515 buildInputs = [
pkgs/development/python-modules/libtmux/default.nix+6−4
@@ -1,7 +1,6 @@
1−{ stdenv, fetchPypi, buildPythonPackage, pytest_29 }:
1+{ stdenv, fetchPypi, buildPythonPackage, pytest }:
22
33buildPythonPackage rec {
4− name = "${pname}-${version}";
54 pname = "libtmux";
65 version = "0.7.7";
76
@@ -10,11 +9,14 @@ buildPythonPackage rec {
109 sha256 = "5670c8da8d0192d932ac1e34f010e0eeb098cdb2af6daad0307b5418e7a37733";
1110 };
1211
13− buildInputs = [ pytest_29 ];
14− patchPhase = ''
12+ checkInputs = [ pytest ];
13+ postPatch = ''
1514 sed -i 's/==.*$//' requirements/test.txt
1615 '';
1716
17+ # No tests in archive
18+ doCheck = false;
19+
1820 meta = with stdenv.lib; {
1921 description = "Scripting library for tmux";
2022 homepage = https://libtmux.readthedocs.io/;
pkgs/development/python-modules/limits/default.nixnew file+21
@@ -0,0 +1,21 @@
1+{ stdenv, fetchPypi, buildPythonPackage, six }:
2+
3+buildPythonPackage rec {
4+ pname = "limits";
5+ version = "1.2.1";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "0dfbrmqixsvhvzqgd4s8rfj933k1w5q4bm23pp9zyp70xlb0mfmd";
10+ };
11+
12+ propagatedBuildInputs = [ six ];
13+
14+ doCheck = false; # ifilter
15+
16+ meta = with stdenv.lib; {
17+ description = "Rate limiting utilities";
18+ license = licenses.mit;
19+ homepage = https://limits.readthedocs.org/;
20+ };
21+}
pkgs/development/python-modules/maya/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv, fetchPypi, fetchpatch, buildPythonPackage
2+, dateparser, humanize, pendulum, ruamel_yaml, tzlocal }:
3+
4+buildPythonPackage rec {
5+ pname = "maya";
6+ version = "0.3.3";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "1x88k4irpckvd7jf2yvqjw1s52hjqbxym1r1d928yb3fkj7rvlxs";
11+ };
12+
13+ patches = [
14+ (fetchpatch {
15+ # https://github.com/kennethreitz/maya/issues/112
16+ # Merged, so should be in next release.
17+ url = "https://github.com/kennethreitz/maya/commit/f69a93b1103130139cdec30511777823957fb659.patch";
18+ sha256 = "152ba7amv9dhhx1wcklfalsdzsxggik9f7rsrikms921lq9xqc8h";
19+ })
20+ ];
21+
22+ propagatedBuildInputs = [ dateparser humanize pendulum ruamel_yaml tzlocal ];
23+
24+ # No tests
25+ doCheck = false;
26+
27+ meta = with stdenv.lib; {
28+ description = "Datetimes for Humans";
29+ homepage = https://github.com/kennethreitz/maya;
30+ license = licenses.mit;
31+ };
32+}
pkgs/development/python-modules/mdp/default.nix+2−3
@@ -1,16 +1,15 @@
1−{ stdenv, buildPythonPackage, fetchPypi, pytest_29, future, numpy }:
1+{ stdenv, buildPythonPackage, fetchPypi, pytest, future, numpy }:
22
33buildPythonPackage rec {
44 pname = "MDP";
55 version = "3.5";
6− name = "${pname}-${version}";
76
87 src = fetchPypi {
98 inherit pname version;
109 sha256 = "0aw1zxmyvx6gfmmnixbqmdaah28jl7rmqkzhxv53091asc23iw9k";
1110 };
1211
13− checkInputs = [ pytest_29 ];
12+ checkInputs = [ pytest ];
1413 propagatedBuildInputs = [ future numpy ];
1514
1615 # Tests disabled because of missing dependencies not in nix
pkgs/development/python-modules/meinheld/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{ stdenv, fetchPypi, buildPythonPackage, greenlet }:
2+
3+buildPythonPackage rec {
4+ pname = "meinheld";
5+ version = "0.6.1";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "0rg5878njn66cc0x2fwrakikz24946r0cxxl6j8vvz5phd4zygi9";
10+ };
11+
12+ propagatedBuildInputs = [ greenlet ];
13+
14+ # No tests
15+ doCheck = false;
16+
17+ meta = with stdenv.lib; {
18+ description = "High performance asynchronous Python WSGI Web Server";
19+ homepage = http://meinheld.org/;
20+ license = licenses.bsd3;
21+ };
22+}
pkgs/development/python-modules/moto/default.nix+2−2
@@ -4,11 +4,11 @@
44
55buildPythonPackage rec {
66 pname = "moto";
7− version = "1.1.25";
7+ version = "1.2.0";
88
99 src = fetchPypi {
1010 inherit pname version;
11− sha256 = "d427d6e1a81e926c2b6a071453807b05f4736d65068493e1f3055ac7ee24ea21";
11+ sha256 = "c42b894cdf35412c95f0c6b40309cf802436e049cd172dc5db7516c7b845191b";
1212 };
1313
1414 propagatedBuildInputs = [
pkgs/development/python-modules/multidict/default.nix+5−5
@@ -1,5 +1,5 @@
11{ lib
2−, fetchurl
2+, fetchPypi
33, buildPythonPackage
44, cython
55, pytest, psutil, pytestrunner
@@ -7,13 +7,13 @@
77}:
88
99let
10+
11+in buildPythonPackage rec {
1012 pname = "multidict";
1113 version = "4.0.0";
12−in buildPythonPackage rec {
13− name = "${pname}-${version}";
1414
15− src = fetchurl {
16− url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
15+ src = fetchPypi {
16+ inherit pname version;
1717 sha256 = "0y0pg3r9hlknny0zwg906wz81h8in6lgvnpbmzvl911bmnrqc95p";
1818 };
1919
pkgs/development/python-modules/natsort/default.nix+1−3
@@ -39,9 +39,7 @@ buildPythonPackage rec {
3939 sha256 = "9ffbfb74bf3fc3905be1b9b052ed865675651e38fcd972ed1ed5c64a02f93cbd";
4040 };
4141
42− # do not run checks on nix_run_setup.py
43− patches = lib.singleton ./setup.patch
44− ++ lib.optional (isPy35 || isPy36) ./python-3.6.3-test-failures.patch;
42+ patches = lib.optional (isPy35 || isPy36) ./python-3.6.3-test-failures.patch;
4543
4644 # testing based on project's tox.ini
4745 checkPhase = ''
pkgs/development/python-modules/natsort/setup.patchdeleted−20
@@ -1,20 +0,0 @@
1−diff --git a/setup.cfg b/setup.cfg
2−index 604994d..e38c3ec 100644
3−--- a/setup.cfg
4−+++ b/setup.cfg
5−@@ -6,6 +6,7 @@ formats = gztar
6−
7− [tool:pytest]
8− flakes-ignore =
9−+ nix_run_setup.py ALL
10− natsort/compat/py23.py UndefinedName
11− natsort/__init__.py UnusedImport
12− natsort/compat/* UnusedImport
13−@@ -14,6 +15,7 @@ flakes-ignore =
14− test_natsort/test_locale_help.py UnusedImport RedefinedWhileUnused
15− test_natsort/compat/* UnusedImport
16− pep8ignore =
17−+ nix_run_setup.py ALL
18− natsort/ns_enum.py E126 E241 E123 E221
19− test_natsort/test_*.py E501 E241 E221
20− test_natsort/test_natsort_keygen.py E501 E241 E221 E701
pkgs/development/python-modules/nibabel/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, numpy
5+, nose
6+, six
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "nibabel";
11+ version = "2.2.0";
12+
13+ src = fetchPypi {
14+ inherit pname version;
15+ sha256 = "1h6nhi1s2ab7sdyyl3qjnvlw0kggcnam7vn4b3z56ay20596kvhw";
16+ };
17+
18+ propagatedBuildInputs = [
19+ numpy
20+ nose
21+ six
22+ ];
23+
24+ # Failing tests
25+ # nibabel.tests.test_minc1.test_old_namespace
26+ # nibabel.gifti.tests.test_parse_gifti_fast.test_parse_dataarrays
27+ # nibabel.gifti.tests.test_giftiio.test_read_deprecated
28+ doCheck = false;
29+
30+ meta = with stdenv.lib; {
31+ homepage = http://nipy.org/nibabel/;
32+ description = "Access a multitude of neuroimaging data formats";
33+ license = licenses.mit;
34+ maintainers = with maintainers; [ ashgillman ];
35+ };
36+}
pkgs/development/python-modules/nimfa/default.nix+2−2
@@ -10,11 +10,11 @@
1010
1111buildPythonPackage rec {
1212 pname = "nimfa";
13− version = "1.3.2";
13+ version = "1.3.4";
1414
1515 src = fetchPypi {
1616 inherit pname version;
17− sha256 = "0iqcrr48jwy7nh8g13xf4rvpw9wq5qs3hyd6gqlh30mgyn9i85w7";
17+ sha256 = "651376eba6b049fe270dc0d29d4b2abecb5e998c2013df6735a97875503e2ffe";
1818 };
1919
2020 propagatedBuildInputs = [ numpy scipy ];
pkgs/development/python-modules/nipype/default.nixnew file+68
@@ -0,0 +1,68 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, isPy3k
5+# python dependencies
6+, click
7+, configparser ? null
8+, dateutil
9+, funcsigs
10+, future
11+, mock
12+, networkx
13+, nibabel
14+, numpy
15+, packaging
16+, prov
17+, psutil
18+, pydot
19+, pytest
20+, scipy
21+, simplejson
22+, traits
23+, xvfbwrapper
24+# other dependencies
25+, which
26+}:
27+
28+assert !isPy3k -> configparser != null;
29+
30+buildPythonPackage rec {
31+ pname = "nipype";
32+ version = "0.14.0";
33+
34+ src = fetchPypi {
35+ inherit pname version;
36+ sha256 = "0airdrh93vwmbfkqxp5cqfzm0zzqcvjnvphv3zhg197y39xxpl1k";
37+ };
38+
39+ doCheck = false; # fails with TypeError: None is not callable
40+ checkInputs = [ which ];
41+ buildInputs = [ pytest mock ]; # required in installPhase
42+ propagatedBuildInputs = [
43+ click
44+ dateutil
45+ funcsigs
46+ future
47+ networkx
48+ nibabel
49+ numpy
50+ packaging
51+ prov
52+ psutil
53+ pydot
54+ scipy
55+ simplejson
56+ traits
57+ xvfbwrapper
58+ ] ++ stdenv.lib.optional (!isPy3k) [
59+ configparser
60+ ];
61+
62+ meta = with stdenv.lib; {
63+ homepage = http://nipy.org/nipype/;
64+ description = "Neuroimaging in Python: Pipelines and Interfaces";
65+ license = licenses.bsd3;
66+ maintainers = with maintainers; [ ashgillman ];
67+ };
68+}
pkgs/development/python-modules/node-semver/default.nix+2−2
@@ -2,14 +2,14 @@
22
33buildPythonPackage rec {
44 name = "${pname}-${version}";
5− version = "0.2.0";
5+ version = "0.3.0";
66 pname = "node-semver";
77
88 buildInputs = [ pytest tox ];
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "c32bfc976fd9e003c4a15665e5fe9f337366ba6b60aeb34e4479da9d7bbb0081";
12+ sha256 = "d8a3906e7677f8ab05aeb3fc94c7a2fa163def5507271452ce6831282f23f1cb";
1313 };
1414
1515 meta = with stdenv.lib; {
pkgs/development/python-modules/pendulum/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{ stdenv, fetchPypi, buildPythonPackage, dateutil, pytzdata, tzlocal }:
2+
3+buildPythonPackage rec {
4+ pname = "pendulum";
5+ version = "1.3.2";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "1j6hdsdhhw4d6fy9byr0vyxqnb53ap8bh2a0cibl7p0ks0zvb14j";
10+ };
11+
12+ propagatedBuildInputs = [ dateutil pytzdata tzlocal ];
13+
14+ # No tests
15+ doCheck = false;
16+
17+ meta = with stdenv.lib; {
18+ description = "Python datetimes made easy";
19+ homepage = https://github.com/sdispater/pendulum;
20+ license = licenses.mit;
21+ };
22+}
pkgs/development/python-modules/phonenumbers/default.nix+2−2
@@ -2,12 +2,12 @@
22
33buildPythonPackage rec {
44 pname = "phonenumbers";
5− version = "8.8.8";
5+ version = "8.8.9";
66 name = "${pname}-${version}";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "ff2f492e49c212bb7185954efe09e68583a67daec586c02c49bc728c343d4eb0";
10+ sha256 = "d819299c3aa8f85f248295ab8559e202af429b4017301b122a0b4c387aed10d2";
1111 };
1212
1313 meta = {
pkgs/development/python-modules/progressbar2/default.nix+3−1
@@ -14,6 +14,7 @@
1414, pytestcov
1515, pytestcache
1616, pep8
17+, pytestrunner
1718}:
1819
1920buildPythonPackage rec {
@@ -30,6 +31,7 @@ buildPythonPackage rec {
3031 };
3132
3233 propagatedBuildInputs = [ python-utils ];
34+ nativeBuildInputs = [ pytestrunner ];
3335 checkInputs = [
3436 pytest sphinx coverage execnet flake8 pytestpep8 pytestflakes pytestcov
3537 pytestcache pep8
@@ -37,7 +39,7 @@ buildPythonPackage rec {
3739 # ignore tests on the nix wrapped setup.py and don't flake .eggs directory
3840 checkPhase = ''
3941 runHook preCheck
40− ${python.interpreter} setup.py test --addopts "--ignore=nix_run_setup.py --ignore=.eggs"
42+ ${python.interpreter} setup.py test --addopts "--ignore=.eggs"
4143 runHook postCheck
4244 '';
4345
pkgs/development/python-modules/prov/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, lxml
5+, networkx
6+, dateutil
7+, six
8+, pydotplus
9+, rdflib
10+}:
11+
12+buildPythonPackage rec {
13+ pname = "prov";
14+ version = "1.5.1";
15+
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "7a2d72b0df43cd9c6e374d815c8ce3cd5ca371d54f98f837853ac9fcc98aee4c";
19+ };
20+
21+ propagatedBuildInputs = [
22+ lxml
23+ networkx
24+ dateutil
25+ six
26+ pydotplus
27+ rdflib
28+ ];
29+ doCheck = false; # takes ~60 mins
30+
31+ meta = with stdenv.lib; {
32+ description = "A Python library for W3C Provenance Data Model (PROV)";
33+ homepage = https://github.com/trungdong/prov;
34+ license = licenses.mit;
35+ maintainers = with maintainers; [ ashgillman ];
36+ };
37+}
pkgs/development/python-modules/pydotplus/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, pyparsing
5+, graphviz
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "pydotplus";
10+ version = "2.0.2";
11+
12+ src = fetchPypi {
13+ inherit pname version;
14+ sha256 = "1i05cnk3yh722fdyaq0asr7z9xf7v7ikbmnpxa8j6pdqx6g5xs4i";
15+ };
16+
17+ propagatedBuildInputs = [
18+ pyparsing
19+ graphviz
20+ ];
21+
22+ meta = with stdenv.lib; {
23+ homepage = https://github.com/erocarrera/pydot;
24+ description = "An improved version of the old pydot project that provides a Python Interface to Graphviz’s Dot language";
25+ license = licenses.mit;
26+ maintainers = with maintainers; [ ashgillman ];
27+ };
28+}
pkgs/development/python-modules/pylast/default.nix+2−2
@@ -2,12 +2,12 @@
22
33buildPythonPackage rec {
44 pname = "pylast";
5− version = "2.0.0";
5+ version = "2.1.0";
66 name = "${pname}-${version}";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "8e4d4962aa12d67bd357e1aa596a146b2e97afd943b5c9257e555014d13b3065";
10+ sha256 = "b9b51dc40a7d3ac3eee17ab5b462b8efb7f2c2ff195261ea846ae4e1168e1c5b";
1111 };
1212
1313 propagatedBuildInputs = [ certifi six ];
pkgs/development/python-modules/pylti/default.nixnew file+51
@@ -0,0 +1,51 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, httplib2
5+, oauth
6+, oauth2
7+, semantic-version
8+, flask
9+, httpretty
10+, oauthlib
11+, pyflakes
12+, pytest
13+, pytestcache
14+, pytestcov
15+, covCore
16+, pytestflakes
17+, pytestpep8
18+, sphinx
19+, mock
20+, isPy27
21+}:
22+
23+buildPythonPackage rec {
24+ pname = "PyLTI";
25+ version = "0.5.1";
26+
27+ disabled = !isPy27;
28+
29+ # There is no need to fix mock. https://github.com/mitodl/pylti/pull/48
30+ postPatch = ''
31+ substituteInPlace setup.py --replace "mock==1.0.1" "mock"
32+ '';
33+
34+ propagatedBuildInputs = [ httplib2 oauth oauth2 semantic-version ];
35+ checkInputs = [
36+ flask httpretty oauthlib pyflakes pytest pytestcache pytestcov covCore
37+ pytestflakes pytestpep8 sphinx mock
38+ ];
39+
40+ src = fetchPypi {
41+ inherit pname version;
42+ sha256 = "32093d961bf95e508bf27667289155da1e082ed9989bb84a76c54c6974c941e1";
43+ };
44+
45+ meta = {
46+ description = "Implementation of IMS LTI interface that works with edX";
47+ homepage = "https://github.com/mitodl/pylti";
48+ license = lib.licenses.bsdOriginal;
49+ maintainers = with lib.maintainers; [ layus ];
50+ };
51+}
pkgs/development/python-modules/pyodbc/default.nix+2−2
@@ -2,13 +2,13 @@
22
33buildPythonPackage rec {
44 pname = "pyodbc";
5− version = "4.0.21";
5+ version = "4.0.22";
66 name = "${pname}-${version}";
77 disabled = isPyPy; # use pypypdbc instead
88
99 src = fetchPypi {
1010 inherit pname version;
11− sha256 = "9655f84ca9e5cb2dfffff705601017420c840d55271ba62dd44f05383eff0329";
11+ sha256 = "e2d742b42c8b92b10018c51d673fe72d925ab90d4dbaaccd4f209e10e228ba73";
1212 };
1313
1414 buildInputs = [ libiodbc ];
pkgs/development/python-modules/pyopencl/default.nix+2−2
@@ -15,7 +15,7 @@
1515
1616buildPythonPackage rec {
1717 pname = "pyopencl";
18− version = "2017.2.2";
18+ version = "2018.1";
1919
2020 checkInputs = [ pytest ];
2121 buildInputs = [ opencl-headers ocl-icd ];
@@ -24,7 +24,7 @@ buildPythonPackage rec {
2424
2525 src = fetchPypi {
2626 inherit pname version;
27− sha256 = "d2f7b04d2e819c6e90d6366b7712a7452a39fba218e51b11b02c85ab07fd2983";
27+ sha256 = "b692966bbaaa65ef8949ee25660d6b0cc7cbadc7f4a35eb9c5139dfa4dde6d4a";
2828 };
2929
3030 # py.test is not needed during runtime, so remove it from `install_requires`
pkgs/development/python-modules/pyte/default.nix−2
@@ -3,8 +3,6 @@
33buildPythonPackage rec {
44 pname = "pyte";
55 version = "0.7.0";
6− name = "${pname}-${version}";
7−
86 src = fetchPypi {
97 inherit pname version;
108 sha256 = "1an54hvyjm8gncx8cgabz9mkpgjkdb0bkyjlkh7g7f94nr3wnfl7";
pkgs/development/python-modules/pytest-flake8/default.nix+1−1
@@ -17,7 +17,7 @@ buildPythonPackage rec {
1717 };
1818
1919 checkPhase = ''
20− pytest --ignore=nix_run_setup.py .
20+ pytest .
2121 '';
2222
2323 meta = {
pkgs/development/python-modules/pytest-httpbin/default.nix+3−7
@@ -11,21 +11,17 @@
1111
1212buildPythonPackage rec {
1313 pname = "pytest-httpbin";
14− name = "${pname}-${version}";
15− version = "0.2.3";
14+ version = "0.3.0";
1615
1716 src = fetchFromGitHub {
1817 owner = "kevin1024";
1918 repo = "pytest-httpbin";
2019 rev = "v${version}";
21− sha256 = "0j3n12jjy8cm0va8859wqra6abfyajrgh2qj8bhcngf3a72zl9ks";
20+ sha256 = "0p86ljx775gxxicscs1dydmmx92r1g9bs00vdvxrsl3qdll1ksfm";
2221 };
2322
24− checkPhase = ''
25− py.test -k "not test_chunked_encoding"
26− '';
23+ checkInputs = [ pytest ];
2724
28− buildInputs = [ pytest ];
2925 propagatedBuildInputs = [ flask decorator httpbin six requests ];
3026
3127 meta = {
pkgs/development/python-modules/pytest-xdist/default.nix+2−2
@@ -3,11 +3,11 @@
33buildPythonPackage rec {
44 name = "${pname}-${version}";
55 pname = "pytest-xdist";
6− version = "1.21.0";
6+ version = "1.22.0";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "0b8622435e3c0650a8d5a07b73a7f9c4f79b52d7ed060536a6041f0da423ba8e";
10+ sha256 = "65228a859191f2c74ee68c127317eefe35eedd3d43fc1431f19240663b0cafcd";
1111 };
1212
1313 buildInputs = [ pytest setuptools_scm pytest-forked];
pkgs/development/python-modules/pytest/2_7.nixdeleted−30
@@ -1,30 +0,0 @@
1−{ stdenv, pkgs, buildPythonPackage, fetchurl, isPy26, argparse, py, selenium }:
2−buildPythonPackage rec {
3− pname = "pytest";
4− version = "2.7.3";
5− name = pname + "-" + version;
6−
7− src = fetchurl {
8− url = "mirror://pypi/p/pytest/${name}.tar.gz";
9− sha256 = "1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm";
10− };
11−
12− # Disabled temporarily because of Hydra issue with namespaces
13− doCheck = false;
14−
15− preCheck = ''
16− # don't test bash builtins
17− rm testing/test_argcomplete.py
18− '';
19−
20− propagatedBuildInputs = [ py ]
21− ++ (stdenv.lib.optional isPy26 argparse)
22− ++ stdenv.lib.optional
23− pkgs.config.pythonPackages.pytest.selenium or false
24− selenium;
25−
26− meta = with stdenv.lib; {
27− maintainers = with maintainers; [ domenkozar lovek323 madjar ];
28− platforms = platforms.unix;
29− };
30−}
pkgs/development/python-modules/pytest/2_8.nixdeleted−30
@@ -1,30 +0,0 @@
1−{ stdenv, pkgs, buildPythonPackage, fetchurl, isPy26, argparse, py, selenium }:
2−buildPythonPackage rec {
3− pname = "pytest";
4− version = "2.8.7";
5− name = pname + "-" + version;
6−
7− src = fetchurl {
8− url = "mirror://pypi/p/pytest/${name}.tar.gz";
9− sha256 = "1bwb06g64x2gky8x5hcrfpg6r351xwvafimnhm5qxq7wajz8ck7w";
10− };
11−
12− # Disabled temporarily because of Hydra issue with namespaces
13− doCheck = false;
14−
15− preCheck = ''
16− # don't test bash builtins
17− rm testing/test_argcomplete.py
18− '';
19−
20− propagatedBuildInputs = [ py ]
21− ++ (stdenv.lib.optional isPy26 argparse)
22− ++ stdenv.lib.optional
23− pkgs.config.pythonPackages.pytest.selenium or false
24− selenium;
25−
26− meta = with stdenv.lib; {
27− maintainers = with maintainers; [ domenkozar lovek323 madjar ];
28− platforms = platforms.unix;
29− };
30−}
pkgs/development/python-modules/pytest/2_9.nixdeleted−30
@@ -1,30 +0,0 @@
1−{ stdenv, pkgs, buildPythonPackage, fetchurl, isPy26, argparse, py, selenium }:
2−buildPythonPackage rec {
3− pname = "pytest";
4− version = "2.9.2";
5− name = pname + "-" + version;
6−
7− src = fetchurl {
8− url = "mirror://pypi/p/pytest/${name}.tar.gz";
9− sha256 = "1n6igbc1b138wx1q5gca4pqw1j6nsyicfxds5n0b5989kaxqmh8j";
10− };
11−
12− # Disabled temporarily because of Hydra issue with namespaces
13− doCheck = false;
14−
15− preCheck = ''
16− # don't test bash builtins
17− rm testing/test_argcomplete.py
18− '';
19−
20− propagatedBuildInputs = [ py ]
21− ++ (stdenv.lib.optional isPy26 argparse)
22− ++ stdenv.lib.optional
23− pkgs.config.pythonPackages.pytest.selenium or false
24− selenium;
25−
26− meta = with stdenv.lib; {
27− maintainers = with maintainers; [ domenkozar lovek323 madjar ];
28− platforms = platforms.unix;
29− };
30−}
pkgs/development/python-modules/pytest/3_0.nixdeleted−27
@@ -1,27 +0,0 @@
1−{ stdenv, buildPythonPackage, fetchPypi, isPy26, argparse, hypothesis, py
2−, setuptools_scm
3−}:
4−buildPythonPackage rec {
5− version = "3.0.7";
6− pname = "pytest";
7− name = "${pname}-${version}";
8−
9− preCheck = ''
10− # don't test bash builtins
11− rm testing/test_argcomplete.py
12− '';
13−
14− src = fetchPypi {
15− inherit pname version;
16− sha256 = "b70696ebd1a5e6b627e7e3ac1365a4bc60aaf3495e843c1e70448966c5224cab";
17− };
18−
19− buildInputs = [ hypothesis setuptools_scm ];
20− propagatedBuildInputs = [ py ]
21− ++ (stdenv.lib.optional isPy26 argparse);
22−
23− meta = with stdenv.lib; {
24− maintainers = with maintainers; [ domenkozar lovek323 madjar lsix ];
25− platforms = platforms.unix;
26− };
27−}
pkgs/development/python-modules/pytest/3_2.nixdeleted−27
@@ -1,27 +0,0 @@
1−{ stdenv, buildPythonPackage, fetchPypi, isPy26, argparse, hypothesis, py
2−, setuptools_scm, setuptools
3−}:
4−buildPythonPackage rec {
5− version = "3.2.5";
6− pname = "pytest";
7−
8− preCheck = ''
9− # don't test bash builtins
10− rm testing/test_argcomplete.py
11− '';
12−
13− src = fetchPypi {
14− inherit pname version;
15− sha256 = "6d5bd4f7113b444c55a3bbb5c738a3dd80d43563d063fc42dcb0aaefbdd78b81";
16− };
17−
18− checkInputs = [ hypothesis ];
19− buildInputs = [ setuptools_scm ];
20− propagatedBuildInputs = [ py setuptools ]
21− ++ (stdenv.lib.optional isPy26 argparse);
22−
23− meta = with stdenv.lib; {
24− maintainers = with maintainers; [ domenkozar lovek323 madjar lsix ];
25− platforms = platforms.unix;
26− };
27−}
pkgs/development/python-modules/pytestrunner/default.nixnew file+19
@@ -0,0 +1,19 @@
1+{ stdenv, buildPythonPackage, fetchPypi, setuptools_scm, pytest }:
2+
3+buildPythonPackage rec {
4+ pname = "pytest-runner";
5+ version = "3.0";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "00v7pi09q60yx0l1kzyklnmr5bp597mir85a9gsi7bdfyly3lz0g";
10+ };
11+
12+ buildInputs = [ setuptools_scm pytest ];
13+
14+ meta = with stdenv.lib; {
15+ description = "Invoke py.test as distutils command with dependency resolution";
16+ homepage = https://bitbucket.org/pytest-dev/pytest-runner;
17+ license = licenses.mit;
18+ };
19+}
pkgs/development/python-modules/python-utils/default.nix−1
@@ -23,7 +23,6 @@ buildPythonPackage rec {
2323 doCheck = false;
2424
2525 checkPhase = ''
26− rm nix_run_setup.py
2726 py.test
2827 '';
2928
pkgs/development/python-modules/pytzdata/default.nixnew file+20
@@ -0,0 +1,20 @@
1+{ stdenv, fetchPypi, buildPythonPackage }:
2+
3+buildPythonPackage rec {
4+ pname = "pytzdata";
5+ version = "2017.3.1";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "1wi3jh39zsa9iiyyhynhj7w5b2p9wdyd0ppavpsrmf3wxvr7cwz8";
10+ };
11+
12+ # No tests
13+ doCheck = false;
14+
15+ meta = with stdenv.lib; {
16+ description = "Timezone database for Python";
17+ homepage = https://github.com/sdispater/pytzdata;
18+ license = licenses.mit;
19+ };
20+}
pkgs/development/python-modules/raven/default.nix+5−6
@@ -1,20 +1,19 @@
1−{ lib, buildPythonPackage, fetchurl, isPy3k, contextlib2 }:
1+{ lib, buildPythonPackage, fetchPypi, isPy3k, contextlib2, blinker }:
22
33buildPythonPackage rec {
44 pname = "raven";
55 version = "6.5.0";
6− name = pname + "-" + version;
76
8− src = fetchurl {
9− url = "mirror://pypi/r/raven/${name}.tar.gz";
10− sha256 = "0fsgdq1dcjh33rqg5fkzg9b86zhpsvzrdwl84ggin69r8w8pbnl4";
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "84da75114739191bdf2388f296ffd6177e83567a7fbaf2701e034ad6026e4f3b";
1110 };
1211
1312 # way too many dependencies to run tests
1413 # see https://github.com/getsentry/raven-python/blob/master/setup.py
1514 doCheck = false;
1615
17− propagatedBuildInputs = lib.optionals (!isPy3k) [ contextlib2 ];
16+ propagatedBuildInputs = [ blinker ] ++ lib.optionals (!isPy3k) [ contextlib2 ];
1817
1918 meta = {
2019 description = "A Python client for Sentry (getsentry.com)";
pkgs/development/python-modules/regex/default.nix+2−2
@@ -6,11 +6,11 @@
66
77buildPythonPackage rec {
88 pname = "regex";
9− version = "2017.12.12";
9+ version = "2018.01.10";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "ee069308c2757e565cc2b6f417ba5288e76cfe4c1764b6826063f4fbd53219d7";
13+ sha256 = "139678fc013b75e486e580c39b4c52d085ed7362e400960f8be1711a414f16b5";
1414 };
1515
1616 meta = {
pkgs/development/python-modules/schema/default.nix+2−2
@@ -3,12 +3,12 @@
33buildPythonPackage rec {
44
55 pname = "schema";
6− version = "0.6.6";
6+ version = "0.6.7";
77 name = "${pname}-${version}";
88
99 src = fetchPypi {
1010 inherit pname version;
11− sha256 = "1lw28j9w9vxyigg7vkfkvi6ic9lgjkdnfvnxdr7pklslqvzmk2vm";
11+ sha256 = "410f44cb025384959d20deef00b4e1595397fa30959947a4f0d92e9c84616f35";
1212 };
1313
1414 checkInputs = [ pytest ];
pkgs/development/python-modules/secp256k1/default.nixnew file+48
@@ -0,0 +1,48 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pkgconfig
5+, pytest
6+, pytestrunner
7+, cffi
8+, secp256k1
9+}:
10+
11+buildPythonPackage rec {
12+ pname = "secp256k1";
13+ version = "0.13.2";
14+
15+ src = fetchPypi {
16+ inherit pname version;
17+ sha256 = "a3b43e02d321c09eafa769a6fc2c156f555cab3a7db62175ef2fd21e16cdf20c";
18+ };
19+
20+ nativeBuildInputs = [ pkgconfig ];
21+ checkInputs = [ pytest pytestrunner ];
22+ propagatedBuildInputs = [ cffi secp256k1 ];
23+
24+ # Tests are not included in archive
25+ doCheck = false;
26+
27+ preConfigure = ''
28+ cp -r ${secp256k1.src} libsecp256k1
29+ touch libsecp256k1/autogen.sh
30+ export INCLUDE_DIR=${secp256k1}/include
31+ export LIB_DIR=${secp256k1}/lib
32+ '';
33+
34+ checkPhase = ''
35+ py.test tests
36+ '';
37+
38+ postPatch = ''
39+ substituteInPlace setup.py --replace ", 'pytest-runner==2.6.2'" ""
40+ '';
41+
42+ meta = {
43+ homepage = https://github.com/ludbb/secp256k1-py;
44+ description = "Python FFI bindings for secp256k1";
45+ license = with lib.licenses; [ mit ];
46+ maintainers = with lib.maintainers; [ chris-martin ];
47+ };
48+}
pkgs/development/python-modules/sphinx/default.nix+2−2
@@ -27,10 +27,10 @@
2727buildPythonPackage rec {
2828 name = "${pname}-${version}";
2929 pname = "Sphinx";
30− version = "1.6.5";
30+ version = "1.6.6";
3131 src = fetchPypi {
3232 inherit pname version;
33− sha256 = "c6de5dbdbb7a0d7d2757f4389cc00e8f6eb3c49e1772378967a12cfcf2cfe098";
33+ sha256 = "c39a6fa41bd3ec6fc10064329a664ed3a3ca2e27640a823dc520c682e4433cdb";
3434 };
3535 LC_ALL = "en_US.UTF-8";
3636
pkgs/development/python-modules/sqlalchemy/default.nix+4−4
@@ -1,7 +1,7 @@
11{ lib
22, fetchPypi
33, buildPythonPackage
4−, pytest_30
4+, pytest
55, mock
66, pytest_xdist
77, isPy3k
@@ -11,15 +11,15 @@
1111buildPythonPackage rec {
1212 pname = "SQLAlchemy";
1313 name = "${pname}-${version}";
14− version = "1.2.0";
14+ version = "1.2.1";
1515
1616 src = fetchPypi {
1717 inherit pname version;
18− sha256 = "7dda3e0b1b12215e3bb05368d1abbf7d747112a43738e0a4e6deb466b83fd88e";
18+ sha256 = "9ede7070d6fd18f28058be88296ed67893e2637465516d6a596cd9afea97b154";
1919 };
2020
2121 checkInputs = [
22− pytest_30
22+ pytest
2323 mock
2424# Disable pytest_xdist tests for now, because our version seems to be too new.
2525# pytest_xdist
pkgs/development/python-modules/stripe/default.nix+2−2
@@ -3,7 +3,7 @@
33
44buildPythonPackage rec {
55 pname = "stripe";
6− version = "1.77.0";
6+ version = "1.77.1";
77 name = "${pname}-${version}";
88
99 # Tests require network connectivity and there's no easy way to disable
@@ -12,7 +12,7 @@ buildPythonPackage rec {
1212
1313 src = fetchPypi {
1414 inherit pname version;
15− sha256 = "6503851d2309dd9c1307e3f0a1cb33ac1427fee25d38ecba1f8bf73a0d74defc";
15+ sha256 = "d1c638b417301849ff4ee0327332cfdec96edda83c79b08af307339138077d59";
1616 };
1717
1818 buildInputs = [ unittest2 mock ];
pkgs/development/python-modules/tifffile/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "tifffile";
6− version = "0.13.0";
6+ version = "0.13.4";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "1rqx2bar6dcsbmzq68mjh5bsyjzhbkqxi2dsv7j0vdbnjs5dfq9q";
10+ sha256 = "43d3903e8ea4542aaa4759ec3683641555d3a15e68fa5a41aaf14cce4110641a";
1111 };
1212
1313 checkInputs = [ nose ];
pkgs/development/python-modules/tiros/default.nix+2−2
@@ -5,11 +5,11 @@
55buildPythonPackage rec {
66 pname = "tiros";
77 name = "${pname}-${version}";
8− version = "1.0.40";
8+ version = "1.0.42";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "841ca13564e3cddfd1404cbc60b3433bcc1e31c2753ecea20d0ad68173b80169";
12+ sha256 = "d0f9bc6d463654c971a78e02a3159ec62a2db684a217a7e940e66d4a381bdd52";
1313 };
1414
1515 patchPhase = ''
pkgs/development/python-modules/twilio/default.nix−2
@@ -4,8 +4,6 @@
44buildPythonPackage rec {
55 pname = "twilio";
66 version = "6.8.0";
7− name = "${pname}-${version}";
8−
97 # tests not included in PyPi, so fetch from github instead
108 src = fetchFromGitHub {
119 owner = "twilio";
pkgs/development/python-modules/uncertainties/default.nix+2−2
@@ -3,11 +3,11 @@
33buildPythonPackage rec {
44 name = "${pname}-${version}";
55 pname = "uncertainties";
6− version = "3.0.1";
6+ version = "3.0.2";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "de0765cac6911e5afa93ee941063a07b4a98dbd9c314c5eea4ab14bfff0054a4";
10+ sha256 = "91db922d54dff6094b4ea0d6e058f713a992cdf42e3ebaf73278e1893bfa2942";
1111 };
1212
1313 buildInputs = [ nose numpy ];
pkgs/development/python-modules/whitenoise/default.nixnew file+20
@@ -0,0 +1,20 @@
1+{ stdenv, fetchPypi, buildPythonPackage }:
2+
3+buildPythonPackage rec {
4+ pname = "whitenoise";
5+ version = "4.0b4";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "0ra2bbsihwfhnf1ibahzzabgfjfghxqcrbfx6r5r50mlil5n8bf4";
10+ };
11+
12+ # No tests
13+ doCheck = false;
14+
15+ meta = with stdenv.lib; {
16+ description = "Radically simplified static file serving for WSGI applications";
17+ homepage = http://whitenoise.evans.io/;
18+ license = licenses.mit;
19+ };
20+}
pkgs/development/python-modules/xvfbwrapper/default.nixnew file+26
@@ -0,0 +1,26 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, xorgserver
5+, mock
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "xvfbwrapper";
10+ version = "0.2.9";
11+
12+ src = fetchPypi {
13+ inherit pname version;
14+ sha256 = "097wxhvp01ikqpg1z3v8rqhss6f1vwr399zpz9a05d2135bsxx5w";
15+ };
16+ propagatedBuildInputs = [ xorgserver ];
17+
18+ checkInputs = [ mock ];
19+
20+ meta = with stdenv.lib; {
21+ description = "Run headless display inside X virtual framebuffer (Xvfb)";
22+ homepage = https://github.com/cgoldberg/xvfbwrapper;
23+ license = licenses.mit;
24+ maintainers = with maintainers; [ ashgillman ];
25+ };
26+}
pkgs/development/python-modules/yapf/default.nix+2−2
@@ -2,12 +2,12 @@
22
33buildPythonPackage rec {
44 pname = "yapf";
5− version = "0.20.0";
5+ version = "0.20.1";
66 name = "${pname}-${version}";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "ff28f8839a9a105854a099026a33f4cbec8bd933554bfed658aec359bfc88ae8";
10+ sha256 = "bd19f246be7193ad2acdc04702b92315f1ae28d49c82f6671afdeefe9d32f468";
1111 };
1212
1313 meta = with stdenv.lib; {
pkgs/development/python-modules/yarl/default.nix+2−2
@@ -9,11 +9,11 @@
99
1010buildPythonPackage rec {
1111 pname = "yarl";
12− version = "0.17.0";
12+ version = "1.0.0";
1313 name = "${pname}-${version}";
1414 src = fetchPypi {
1515 inherit pname version;
16− sha256 = "2e4e1aec650ad80e73e7063941cd8aadb48e72487ec680a093ad364cc61efe64";
16+ sha256 = "5ea610467a04d99bfc8878186330b28859eafc6ca589cdd24ba6fb7234c4b011";
1717 };
1818
1919 checkInputs = [ pytest pytestrunner ];
pkgs/tools/admin/awscli/default.nix+4−4
@@ -18,20 +18,20 @@ let
1818 name = "${pname}-${version}";
1919 pname = "colorama";
2020 version = "0.3.7";
21− src = fetchPypi {
22− inherit pname version;
21+ src = old.src.override {
22+ inherit version;
2323 sha256 = "0avqkn6362v7k2kg3afb35g4sfdvixjgy890clip4q174p9whhz0";
2424 };
2525 });
2626
2727in buildPythonPackage rec {
2828 pname = "awscli";
29− version = "1.14.22";
29+ version = "1.14.29";
3030 namePrefix = "";
3131
3232 src = fetchPypi {
3333 inherit pname version;
34− sha256 = "13pivyyivwb3xy0l45083gcman2b0xiv00fl9ww0m8jccgxsdzd0";
34+ sha256 = "96edb1dd72fbc13638967fe07c436e95133169759cc962b973bb79ba959bc652";
3535 };
3636
3737 # No tests included
pkgs/tools/backup/borg/default.nix−3
@@ -41,9 +41,6 @@ python3Packages.buildPythonApplication rec {
4141 cp -R docs/_build/man $out/share/man/man1
4242 '';
4343
44− # tests fail due to missing test command in nix_run_setup.py
45− doCheck = false;
46−
4744 meta = with stdenv.lib; {
4845 description = "A deduplicating backup program (attic fork)";
4946 homepage = https://borgbackup.github.io/;
pkgs/tools/misc/tmuxp/default.nix+15−12
@@ -1,26 +1,29 @@
1−{ stdenv, fetchurl, pythonPackages }:
1+{ stdenv, fetchurl, python }:
22
3−pythonPackages.buildPythonApplication rec {
4− name = "tmuxp-${version}";
5− version = "1.3.4";
3+with python.pkgs;
64
7− namePrefix = "";
5+buildPythonApplication rec {
6+ pname = "tmuxp";
7+ version = "1.3.5";
88
9− src = fetchurl {
10− url = "mirror://pypi/t/tmuxp/${name}.tar.gz";
11− sha256 = "149n35rr27n2c6yna1bla20x3w1zz9gxnjj3m3xxdfp4fbsd2y31";
9+ src = fetchPypi {
10+ inherit pname version;
11+ sha256 = "bdbbbf5980d6ec21838396a46cd5b599787e8540782b8e2e3f20d2135560a5d3";
1212 };
1313
14− patchPhase = ''
14+ postPatch = ''
1515 sed -i 's/==.*$//' requirements/base.txt requirements/test.txt
1616 '';
1717
18− buildInputs = with pythonPackages; [
19− pytest_29
18+ checkInputs = [
19+ pytest
2020 pytest-rerunfailures
2121 ];
2222
23− propagatedBuildInputs = with pythonPackages; [
23+ # No tests in archive
24+ doCheck = false;
25+
26+ propagatedBuildInputs = [
2427 click colorama kaptan libtmux
2528 ];
2629
pkgs/top-level/all-packages.nix+2
@@ -414,6 +414,8 @@ with pkgs;
414414
415415 aescrypt = callPackage ../tools/misc/aescrypt { };
416416
417+ afew = callPackage ../applications/networking/mailreaders/afew { pythonPackages = python3Packages; };
418+
417419 afio = callPackage ../tools/archivers/afio { };
418420
419421 afl = callPackage ../tools/security/afl {
pkgs/top-level/python-packages.nix+40−232
@@ -390,8 +390,6 @@ in {
390390
391391 adal = callPackage ../development/python-modules/adal { };
392392
393− afew = callPackage ../development/python-modules/afew { };
394−
395393 aiodns = callPackage ../development/python-modules/aiodns { };
396394
397395 aiofiles = callPackage ../development/python-modules/aiofiles { };
@@ -1746,38 +1744,7 @@ in {
17461744
17471745 httpserver = callPackage ../development/python-modules/httpserver {};
17481746
1749− bleach = buildPythonPackage rec {
1750− pname = "bleach";
1751− version = "2.0.0";
1752− name = "${pname}-${version}";
1753−
1754− src = pkgs.fetchurl {
1755− url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
1756− sha256 = "0c5w7hh70lqzca7ir71j891csvch1899r8q09zgswk1y00q22lmr";
1757− };
1758−
1759− buildInputs = with self; [ pytest pytestrunner ];
1760− propagatedBuildInputs = with self; [ six html5lib ];
1761−
1762− meta = {
1763− description = "An easy, HTML5, whitelisting HTML sanitizer";
1764− longDescription = ''
1765− Bleach is an HTML sanitizing library that escapes or strips markup and
1766− attributes based on a white list. Bleach can also linkify text safely,
1767− applying filters that Django's urlize filter cannot, and optionally
1768− setting rel attributes, even on links already in the text.
1769−
1770− Bleach is intended for sanitizing text from untrusted sources. If you
1771− find yourself jumping through hoops to allow your site administrators
1772− to do lots of things, you're probably outside the use cases. Either
1773− trust those users, or don't.
1774− '';
1775− homepage = https://github.com/mozilla/bleach;
1776− downloadPage = https://github.com/mozilla/bleach/releases;
1777− license = licenses.asl20;
1778− maintainers = with maintainers; [ prikhi ];
1779− };
1780− };
1747+ bleach = callPackage ../development/python-modules/bleach { };
17811748
17821749 # needed for tensorflow-tensorboard
17831750 bleach_1_5_0 = self.bleach.overridePythonAttrs rec {
@@ -2440,32 +2407,7 @@ in {
24402407
24412408 click-plugins = callPackage ../development/python-modules/click-plugins {};
24422409
2443− click-threading = buildPythonPackage rec {
2444− version = "0.4.2";
2445− name = "click-threading-${version}";
2446−
2447− src = pkgs.fetchurl {
2448− url = "mirror://pypi/c/click-threading/${name}.tar.gz";
2449− sha256 = "400b0bb63d9096b6bf2806efaf742a1cc8b6c88e0484f0afe7d7a7f0e9870609";
2450− };
2451−
2452− checkInputs = with self; [ pytest_29 ];
2453− propagatedBuildInputs = with self; [ click ] ++ optional (!isPy3k) futures;
2454−
2455− checkPhase = ''
2456− py.test
2457− '';
2458−
2459− # Tests are broken on 3.x
2460− doCheck = !isPy3k;
2461−
2462− meta = {
2463− homepage = https://github.com/click-contrib/click-threading/;
2464− description = "Multithreaded Click apps made easy";
2465− license = licenses.mit;
2466− maintainers = with maintainers; [ ];
2467− };
2468− };
2410+ click-threading = callPackage ../development/python-modules/click-threading {};
24692411
24702412 cligj = callPackage ../development/python-modules/cligj { };
24712413
@@ -3276,28 +3218,6 @@ in {
32763218
32773219 pytest = self.pytest_33;
32783220
3279− pytest_27 = callPackage ../development/python-modules/pytest/2_7.nix {};
3280−
3281− pytest_28 = callPackage ../development/python-modules/pytest/2_8.nix {};
3282−
3283− pytest_29 = callPackage ../development/python-modules/pytest/2_9.nix {};
3284−
3285− pytest_30 = callPackage ../development/python-modules/pytest/3_0.nix {
3286− hypothesis = self.hypothesis.override {
3287− # hypothesis requires pytest that causes dependency cycle
3288− doCheck = false;
3289− pytest = null;
3290− };
3291− };
3292−
3293− pytest_32 = callPackage ../development/python-modules/pytest/3_2.nix{
3294− hypothesis = self.hypothesis.override {
3295− # hypothesis requires pytest that causes dependency cycle
3296− doCheck = false;
3297− pytest = null;
3298− };
3299− };
3300−
33013221 pytest_33 = callPackage ../development/python-modules/pytest/default.nix{
33023222 hypothesis = self.hypothesis.override {
33033223 # hypothesis requires pytest that causes dependency cycle
@@ -3492,26 +3412,7 @@ in {
34923412 };
34933413 };
34943414
3495− pytestrunner = buildPythonPackage rec {
3496− version = "2.6.2";
3497− name = "pytest-runner-${version}";
3498−
3499− src = pkgs.fetchurl {
3500− url = "mirror://pypi/p/pytest-runner/${name}.tar.gz";
3501− sha256 = "e775a40ee4a3a1d45018b199c44cc20bbe7f3df2dc8882f61465bb4141c78cdb";
3502− };
3503−
3504− buildInputs = with self; [setuptools_scm pytest];
3505−
3506− meta = {
3507− description = "Invoke py.test as distutils command with dependency resolution";
3508− homepage = https://bitbucket.org/pytest-dev/pytest-runner;
3509− license = licenses.mit;
3510− };
3511−
3512− # Trying to run tests fails with # RuntimeError: dictionary changed size during iteration
3513− doCheck = false;
3514− };
3415+ pytestrunner = callPackage ../development/python-modules/pytestrunner { };
35153416
35163417 pytestquickcheck = callPackage ../development/python-modules/pytest-quickcheck { };
35173418
@@ -5660,35 +5561,7 @@ in {
56605561 };
56615562 };
56625563
5663− PyLTI = buildPythonPackage rec {
5664− version = "0.4.1";
5665− name = "PyLTI-${version}";
5666−
5667− disabled = !isPy27;
5668−
5669− # There is no need to fix mock. https://github.com/mitodl/pylti/pull/48
5670− postPatch = ''
5671− substituteInPlace setup.py --replace "mock==1.0.1" "mock"
5672− '';
5673−
5674− propagatedBuildInputs = with self; [ httplib2 oauth oauth2 semantic-version ];
5675− buildInputs = with self; [
5676− flask httpretty oauthlib pyflakes pytest_27 pytestcache pytestcov covCore
5677− pytestflakes pytestpep8 sphinx mock
5678− ];
5679−
5680− src = pkgs.fetchurl {
5681− url = "mirror://pypi/P/PyLTI/${name}.tar.gz";
5682− sha256 = "076llj10j85zw3zq2gygx2pcfqi9rgcld5m4vq1iai1fk15x60fz";
5683− };
5684−
5685− meta = {
5686− description = "Implementation of IMS LTI interface that works with edX";
5687− homepage = "https://github.com/mitodl/pylti";
5688− license = licenses.bsdOriginal;
5689− maintainers = with maintainers; [ layus ];
5690− };
5691− };
5564+ PyLTI = callPackage ../development/python-modules/pylti { };
56925565
56935566 lmdb = buildPythonPackage rec {
56945567 pname = "lmdb";
@@ -6180,6 +6053,8 @@ in {
61806053 };
61816054 };
61826055
6056+ prov = callPackage ../development/python-modules/prov { };
6057+
61836058 pudb = buildPythonPackage rec {
61846059 name = "pudb-2016.2";
61856060
@@ -6277,6 +6152,8 @@ in {
62776152 inherit (pkgs.stdenv) mkDerivation;
62786153 };
62796154
6155+ pydotplus = callPackage ../development/python-modules/pydotplus { };
6156+
62806157 pyphen = callPackage ../development/python-modules/pyphen {};
62816158
62826159 pypoppler = buildPythonPackage rec {
@@ -7155,6 +7032,8 @@ in {
71557032
71567033 chardet = callPackage ../development/python-modules/chardet { };
71577034
7035+ crayons = callPackage ../development/python-modules/crayons{ };
7036+
71587037 django = self.django_1_11;
71597038
71607039 django_1_11 = callPackage ../development/python-modules/django/1_11.nix {
@@ -8045,12 +7924,16 @@ in {
80457924 };
80467925 };
80477926
7927+ flask-common = callPackage ../development/python-modules/flask-common { };
7928+
80487929 flask-compress = callPackage ../development/python-modules/flask-compress { };
80497930
80507931 flask-cors = callPackage ../development/python-modules/flask-cors { };
80517932
80527933 flask_elastic = callPackage ../development/python-modules/flask-elastic { };
80537934
7935+ flask-limiter = callPackage ../development/python-modules/flask-limiter { };
7936+
80547937 flask_login = callPackage ../development/python-modules/flask-login { };
80557938
80567939 flask_ldap_login = callPackage ../development/python-modules/flask-ldap-login { };
@@ -9841,6 +9724,8 @@ in {
98419724 libxslt = disabledIf isPy3k
98429725 (toPythonModule (pkgs.libxslt.override{pythonSupport=true; python2=python; inherit (self) libxml2;})).py;
98439726
9727+ limits = callPackage ../development/python-modules/limits { };
9728+
98449729 limnoria = buildPythonPackage rec {
98459730 name = "limnoria-${version}";
98469731 version = "2016.05.06";
@@ -10192,6 +10077,8 @@ in {
1019210077
1019310078 matrix-client = callPackage ../development/python-modules/matrix-client/default.nix { };
1019410079
10080+ maya = callPackage ../development/python-modules/maya { };
10081+
1019510082 mccabe = callPackage ../development/python-modules/mccabe { };
1019610083
1019710084 mechanize = buildPythonPackage (rec {
@@ -10237,6 +10124,8 @@ in {
1023710124
1023810125 meliae = callPackage ../development/python-modules/meliae {};
1023910126
10127+ meinheld = callPackage ../development/python-modules/meinheld { };
10128+
1024010129 memcached = buildPythonPackage rec {
1024110130 name = "memcached-1.51";
1024210131
@@ -10436,6 +10325,8 @@ in {
1043610325 };
1043710326 };
1043810327
10328+ pendulum = callPackage ../development/python-modules/pendulum { };
10329+
1043910330 pocket = buildPythonPackage rec {
1044010331 name = "pocket-${version}";
1044110332 version = "0.3.6";
@@ -10855,14 +10746,6 @@ in {
1085510746 ];
1085610747 LC_ALL = "en_US.UTF-8";
1085710748
10858− # Remove test that fails due to missing encoding in nix_run_setup.py, a
10859− # file that buildPythonPackage copies to source trees at build time.
10860− # PR with fix: https://github.com/NixOS/nixpkgs/pull/17430
10861− # ("python: add file encoding to run_setup.py")
10862− preBuild = ''
10863− rm tests/test_encoding.py
10864− '';
10865−
1086610749 meta = {
1086710750 description = "Python multimedia tagging library";
1086810751 homepage = http://code.google.com/p/mutagen;
@@ -11340,31 +11223,7 @@ in {
1134011223 };
1134111224 });
1134211225
11343− nibabel = buildPythonPackage rec {
11344− version = "2.0.2";
11345− name = "nibabel-${version}";
11346−
11347− src = pkgs.fetchurl {
11348− url = "mirror://pypi/n/nibabel/${name}.tar.gz";
11349− sha256 = "0k8mv5zmwb6vc8kwrydl3pp0pnw937rf5mz10figkxczrw6dkk7h";
11350− };
11351−
11352− propagatedBuildInputs = with self; [
11353− numpy
11354− nose
11355− ];
11356−
11357− # Failing tests
11358− # nibabel.tests.test_minc1.test_old_namespace
11359− # nisext.tests.test_testers.test_back_tick
11360− doCheck = false;
11361−
11362− meta = {
11363− homepage = http://nipy.org/nibabel/;
11364− description = "Access a multitude of neuroimaging data formats";
11365− license = licenses.mit;
11366− };
11367− };
11226+ nibabel = callPackage ../development/python-modules/nibabel {};
1136811227
1136911228 nilearn = callPackage ../development/python-modules/nilearn {};
1137011229
@@ -11413,36 +11272,8 @@ in {
1141311272 };
1141411273 };
1141511274
11416− nipype = buildPythonPackage rec {
11417− version = "0.10.0";
11418− name = "nipype-${version}";
11419−
11420− # Uses python 2 print. Master seems to be Py3 compatible.
11421− disabled = isPy3k;
11422−
11423− src = pkgs.fetchurl {
11424− url = "mirror://pypi/n/nipype/${name}.tar.gz";
11425− sha256 = "7fb143cd4d05f18db1cb7f0b83dba13d3dcf55b4eb3d16df08c97033ccae507b";
11426− };
11427−
11428− # Tests fail due to getcwd returning ENOENT???
11429− doCheck = false;
11430−
11431− propagatedBuildInputs = with self; [
11432− numpy
11433− dateutil
11434− nose
11435− traits
11436− scipy
11437− nibabel
11438− networkx
11439− ];
11440−
11441− meta = {
11442− homepage = http://nipy.org/nipype/;
11443− description = "Neuroimaging in Python: Pipelines and Interfaces";
11444− license = licenses.bsd3;
11445− };
11275+ nipype = callPackage ../development/python-modules/nipype {
11276+ inherit (pkgs) which;
1144611277 };
1144711278
1144811279 nose = buildPythonPackage rec {
@@ -15139,6 +14970,8 @@ in {
1513914970 };
1514014971 };
1514114972
14973+ pytzdata = callPackage ../development/python-modules/pytzdata { };
14974+
1514214975 pyutil = buildPythonPackage (rec {
1514314976 name = "pyutil-2.0.0";
1514414977
@@ -15627,11 +15460,11 @@ in {
1562715460
1562815461
1562915462 rdflib = buildPythonPackage (rec {
15630− name = "rdflib-4.1.2";
15463+ name = "rdflib-4.2.2";
1563115464
1563215465 src = pkgs.fetchurl {
1563315466 url = "mirror://pypi/r/rdflib/${name}.tar.gz";
15634− sha256 = "0kvaf332cqbi47rqzlpdx4mbkvw12mkrzkj8n9l19wk713d4py9w";
15467+ sha256 = "0398c714znnhaa2x7v51b269hk20iz073knq2mvmqp2ma92z27fs";
1563515468 };
1563615469
1563715470 # error: invalid command 'test'
@@ -16852,39 +16685,8 @@ in {
1685216685 };
1685316686 };
1685416687
16855− secp256k1 = buildPythonPackage rec {
16856− name = "secp256k1-${version}";
16857− version = "0.12.1";
16858−
16859− src = pkgs.fetchurl {
16860− url = "mirror://pypi/s/secp256k1/${name}.tar.gz";
16861− sha256 = "0zrjxvzxqm4bz2jcy8sras8jircgbs6dkrw8j3nc6jhvzlikwwxl";
16862− };
16863−
16864− nativeBuildInputs = [ pkgs.pkgconfig ];
16865− buildInputs = [ self.pytest_28 self.pytestrunner ];
16866− propagatedBuildInputs = [ self.cffi pkgs.secp256k1 ];
16867−
16868− # Tests are not included in archive
16869− doCheck = false;
16870−
16871− preConfigure = ''
16872− cp -r ${pkgs.secp256k1.src} libsecp256k1
16873− touch libsecp256k1/autogen.sh
16874− export INCLUDE_DIR=${pkgs.secp256k1}/include
16875− export LIB_DIR=${pkgs.secp256k1}/lib
16876− '';
16877−
16878− checkPhase = ''
16879− py.test tests
16880− '';
16881−
16882− meta = {
16883− homepage = https://github.com/ludbb/secp256k1-py;
16884− description = "Python FFI bindings for secp256k1";
16885− license = with licenses; [ mit ];
16886− maintainers = with maintainers; [ chris-martin ];
16887− };
16688+ secp256k1 = callPackage ../development/python-modules/secp256k1 {
16689+ inherit (pkgs) secp256k1 pkgconfig;
1688816690 };
1688916691
1689016692 semantic-version = callPackage ../development/python-modules/semantic-version { };
@@ -17855,11 +17657,11 @@ in {
1785517657
1785617658 traits = buildPythonPackage rec {
1785717659 name = "traits-${version}";
17858− version = "4.5.0";
17660+ version = "4.6.0";
1785917661
1786017662 src = pkgs.fetchurl {
1786117663 url = "mirror://pypi/t/traits/${name}.tar.gz";
17862− sha256 = "5293a8786030b0b243e059f52004355b6939d7c0f1be2eb5a605b63cca484c84";
17664+ sha256 = "0w43qv36wnrimlh0nzzgg81315a18yza3vk494wqxf1l19g390jx";
1786317665 };
1786417666
1786517667 # Use pytest because its easier to discover tests
@@ -17872,7 +17674,7 @@ in {
1787217674 # https://github.com/enthought/traits/issues/187
1787317675 # https://github.com/enthought/traits/pull/188
1787417676 # Furthermore, some tests fail due to being in a chroot
17875− doCheck = false;
17677+ doCheck = isPy33;
1787617678
1787717679 propagatedBuildInputs = with self; [ numpy ];
1787817680
@@ -21680,6 +21482,10 @@ EOF
2168021482 };
2168121483 };
2168221484
21485+ xvfbwrapper = callPackage ../development/python-modules/xvfbwrapper {
21486+ inherit (pkgs.xorg) xorgserver;
21487+ };
21488+
2168321489 hidapi = callPackage ../development/python-modules/hidapi {
2168421490 inherit (pkgs) udev libusb1;
2168521491 };
@@ -22512,6 +22318,8 @@ EOF
2251222318
2251322319 vine = callPackage ../development/python-modules/vine { };
2251422320
22321+ whitenoise = callPackage ../development/python-modules/whitenoise { };
22322+
2251522323 wp_export_parser = buildPythonPackage rec {
2251622324 name = "${pname}-${version}";
2251722325 pname = "wp_export_parser";