@@ -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";