Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #28884 from FRidh/python-fixes

Python: several fixes

authored by Frederik Rietdijk and committed by Frederik Rietdijk 67651d80 036bafe0

+1365 -761
+29 -15
pkgs/applications/networking/flexget/default.nix
··· 9 9 with python.pkgs; 10 10 11 11 buildPythonApplication rec { 12 - version = "2.10.40"; 12 + version = "2.10.82"; 13 13 name = "FlexGet-${version}"; 14 14 15 15 src = fetchFromGitHub { 16 16 owner = "Flexget"; 17 17 repo = "Flexget"; 18 18 rev = version; 19 - sha256 = "0hh21yv1lvdfi198snwjabfsdh04fnpjszpgg28wvg5pd1qq8lqv"; 19 + sha256 = "15508ihswfjbkzhf1f0qhn2ar1aiibz2ggp5d6r33icy8xwhpv09"; 20 20 }; 21 21 22 22 doCheck = true; ··· 27 27 sed -i '/def test_non_ascii/i\ import pytest\ 28 28 @pytest.mark.skip' flexget/tests/test_filesystem.py 29 29 30 - substituteInPlace requirements.txt --replace "guessit<=2.0.4" "guessit" 30 + substituteInPlace requirements.txt \ 31 + --replace "chardet==3.0.3" "chardet" \ 32 + --replace "rebulk==0.8.2" "rebulk" \ 33 + --replace "cherrypy==10.2.2" "cherrypy" \ 34 + --replace "portend==1.8" "portend" \ 35 + --replace "sqlalchemy==1.1.10" "sqlalchemy" \ 36 + --replace "zxcvbn-python==4.4.15" "zxcvbn-python" \ 37 + --replace "flask-cors==3.0.2" "flask-cors" \ 38 + --replace "certifi==2017.4.17" "certifi" 31 39 ''; 32 40 33 - # Disable 3 failing tests caused by guessit upgrade 34 - # https://github.com/Flexget/Flexget/issues/1804 35 41 checkPhase = '' 36 42 export HOME=. 37 - py.test --disable-pytest-warnings -k "not test_date_options and not test_ep_as_quality and not testFromGroup" 43 + py.test --disable-pytest-warnings -k "not test_quality_failures \ 44 + and not test_group_quality \ 45 + and not crash_report \ 46 + and not test_multi_episode \ 47 + and not test_double_episodes \ 48 + and not test_inject_force \ 49 + and not test_double_prefered \ 50 + and not test_double" 38 51 ''; 39 52 40 53 buildInputs = [ pytest mock vcrpy pytest-catchlog boto3 ]; 41 54 propagatedBuildInputs = [ 42 - feedparser sqlalchemy pyyaml 55 + feedparser sqlalchemy pyyaml chardet 43 56 beautifulsoup4 html5lib PyRSS2Gen pynzb 44 - rpyc jinja2 requests dateutil jsonschema 45 - pathpy guessit APScheduler 57 + rpyc jinja2 jsonschema requests dateutil jsonschema 58 + pathpy guessit_2_0 APScheduler 46 59 terminaltables colorclass 47 - cherrypy flask flask-restful flask-restplus_0_8 60 + cherrypy flask flask-restful flask-restplus 48 61 flask-compress flask_login flask-cors 49 - pyparsing safe future zxcvbn-python ] 50 - ++ lib.optional (pythonOlder "3.4") pathlib 51 - # enable deluge and transmission plugin support, if they're installed 52 - ++ lib.optional (config.deluge or false) deluge 53 - ++ lib.optional (transmission != null) transmissionrpc; 62 + pyparsing safe future zxcvbn-python 63 + werkzeug tempora cheroot rebulk portend 64 + ] ++ lib.optional (pythonOlder "3.4") pathlib 65 + # enable deluge and transmission plugin support, if they're installed 66 + ++ lib.optional (config.deluge or false) deluge 67 + ++ lib.optional (transmission != null) transmissionrpc; 54 68 55 69 meta = { 56 70 homepage = https://flexget.com/;
+2 -2
pkgs/development/python-modules/Cython/default.nix
··· 14 14 buildPythonPackage rec { 15 15 pname = "Cython"; 16 16 name = "${pname}-${version}"; 17 - version = "0.26"; 17 + version = "0.26.1"; 18 18 19 19 src = fetchPypi { 20 20 inherit pname version; 21 - sha256 = "4c24e2c22ddaed624d35229dc5db25049e9e225c6f64f3364326836cad8f2c66"; 21 + sha256 = "c2e63c4794161135adafa8aa4a855d6068073f421c83ffacc39369497a189dd5"; 22 22 }; 23 23 24 24 # With Python 2.x on i686-linux or 32-bit ARM this test fails because the
+30
pkgs/development/python-modules/GeoIP/default.nix
··· 1 + {lib, buildPythonPackage, fetchPypi, isPy3k, incremental, ipaddress, twisted 2 + , automat, zope_interface, idna, pyopenssl, service-identity, pytest, mock, lsof 3 + , geoip, nose}: 4 + 5 + buildPythonPackage rec { 6 + name = "${pname}-${version}"; 7 + pname = "GeoIP"; 8 + version = "1.3.2"; 9 + 10 + checkInputs = [ nose ]; 11 + propagatedBuildInputs = [ 12 + geoip 13 + ]; 14 + 15 + src = fetchPypi { 16 + inherit pname version; 17 + sha256 = "1rphxf3vrn8wywjgr397f49s0s22m83lpwcq45lm0h2p45mdm458"; 18 + }; 19 + 20 + # Tests cannot be run because they require data that isn't included in the 21 + # release tarball. 22 + checkPhase = "true"; 23 + 24 + meta = { 25 + description = "MaxMind GeoIP Legacy Database - Python API"; 26 + homepage = http://www.maxmind.com/; 27 + maintainers = with lib.maintainers; [ jluttine ]; 28 + license = lib.licenses.lgpl21Plus; 29 + }; 30 + }
+2 -2
pkgs/development/python-modules/adal/default.nix
··· 3 3 4 4 buildPythonPackage rec { 5 5 pname = "adal"; 6 - version = "0.4.6"; 6 + version = "0.4.7"; 7 7 name = "${pname}-${version}"; 8 8 9 9 src = fetchPypi { 10 10 inherit pname version; 11 - sha256 = "7c5bbf4d8a17d535e6e857b28a41cedddc2767fc57424c15d484fa779bb97325"; 11 + sha256 = "114046ac85d0054791c21b00922f26286822bc6f2ba3716db42e7e57f762ef20"; 12 12 }; 13 13 14 14 propagatedBuildInputs = [ requests pyjwt dateutil ];
+36
pkgs/development/python-modules/aiohttp/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pythonOlder 5 + , chardet 6 + , multidict 7 + , async-timeout 8 + , yarl 9 + , pytest 10 + , gunicorn 11 + , pytest-raisesregexp 12 + }: 13 + 14 + buildPythonPackage rec { 15 + pname = "aiohttp"; 16 + version = "2.2.5"; 17 + name = "${pname}-${version}"; 18 + 19 + src = fetchPypi { 20 + inherit pname version; 21 + sha256 = "af5bfdd164256118a0a306b3f7046e63207d1f8cba73a67dcc0bd858dcfcd3bc"; 22 + }; 23 + 24 + disabled = pythonOlder "3.4"; 25 + 26 + doCheck = false; # Too many tests fail. 27 + 28 + checkInputs = [ pytest gunicorn pytest-raisesregexp ]; 29 + propagatedBuildInputs = [ async-timeout chardet multidict yarl ]; 30 + 31 + meta = { 32 + description = "Http client/server for asyncio"; 33 + license = with lib.licenses; [ asl20 ]; 34 + homepage = https://github.com/KeepSafe/aiohttp/; 35 + }; 36 + }
+28
pkgs/development/python-modules/attrs/default.nix
··· 1 + { lib, stdenv, buildPythonPackage, fetchPypi, pytest, hypothesis, zope_interface 2 + , pympler, coverage, six, clang }: 3 + 4 + buildPythonPackage rec { 5 + name = "${pname}-${version}"; 6 + pname = "attrs"; 7 + version = "17.2.0"; 8 + 9 + src = fetchPypi { 10 + inherit pname version; 11 + sha256 = "04gx08ikpk26wnq22f7l42gapcvk8iz1512r927k6sadz6cinkax"; 12 + }; 13 + 14 + # macOS needs clang for testing 15 + buildInputs = [ 16 + pytest hypothesis zope_interface pympler coverage six 17 + ] ++ lib.optionals (stdenv.isDarwin) [ clang ]; 18 + 19 + checkPhase = '' 20 + py.test 21 + ''; 22 + 23 + meta = with lib; { 24 + description = "Python attributes without boilerplate"; 25 + homepage = https://github.com/hynek/attrs; 26 + license = licenses.mit; 27 + }; 28 + }
+22
pkgs/development/python-modules/backports_unittest-mock/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi, setuptools_scm, mock }: 2 + 3 + buildPythonPackage rec { 4 + name = "${pname}-${version}"; 5 + pname = "backports.unittest_mock"; 6 + version = "1.3"; 7 + 8 + src = fetchPypi { 9 + inherit pname version; 10 + sha256 = "0xdkx5wf5a2w2zd2pshk7z2cvbv6db64c1x6v9v1a18ja7bn9nf6"; 11 + }; 12 + 13 + propagatedBuildInputs = [ mock ]; 14 + 15 + buildInputs = [ setuptools_scm ]; 16 + 17 + meta = with stdenv.lib; { 18 + description = "Provides a function install() which makes the mock module"; 19 + homepage = https://github.com/jaraco/backports.unittest_mock; 20 + license = licenses.mit; 21 + }; 22 + }
+24
pkgs/development/python-modules/beautifulsoup4/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi, nose }: 2 + 3 + buildPythonPackage rec { 4 + name = "${pname}-${version}"; 5 + pname = "beautifulsoup4"; 6 + version = "4.6.0"; 7 + 8 + src = fetchPypi { 9 + inherit pname version; 10 + sha256 = "12cf0ygpz9srpfh9gx2f9ba0swa1rzypv3sm4r0hmjyw6b4nm2w0"; 11 + }; 12 + 13 + buildInputs = [ nose ]; 14 + checkPhase = '' 15 + nosetests build 16 + ''; 17 + 18 + meta = with stdenv.lib; { 19 + homepage = http://crummy.com/software/BeautifulSoup/bs4/; 20 + description = "HTML and XML parser"; 21 + license = licenses.mit; 22 + maintainers = with maintainers; [ domenkozar ]; 23 + }; 24 + }
+29
pkgs/development/python-modules/bkcharts/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , numpy 5 + , pandas 6 + }: 7 + 8 + 9 + buildPythonPackage rec { 10 + pname = "bkcharts"; 11 + version = "0.2"; 12 + name = "${pname}-${version}"; 13 + 14 + src = fetchPypi { 15 + inherit version pname; 16 + sha256 = "a5eaa8e78853dcecaa46345812e4fabe9cd3b96330ebf0809f640a4a0556d72e"; 17 + }; 18 + 19 + propagatedBuildInputs = [ numpy pandas ]; 20 + 21 + # Circular test dependency on bokeh 22 + doCheck = false; 23 + 24 + meta = { 25 + description = "High level chart types built on top of Bokeh"; 26 + homepage = http://github.com/bokeh/bkcharts; 27 + license = lib.licenses.bsd3; 28 + }; 29 + }
+82
pkgs/development/python-modules/bokeh/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , isPyPy 5 + , mock 6 + , pytest 7 + , flask 8 + , jinja2 9 + , markupsafe 10 + , werkzeug 11 + , itsdangerous 12 + , dateutil 13 + , requests 14 + , six 15 + , pygments 16 + , pystache 17 + , markdown 18 + , pyyaml 19 + , pyzmq 20 + , tornado 21 + , colorama 22 + , isPy3k 23 + , futures 24 + , websocket_client 25 + , numpy 26 + , pandas 27 + , greenlet 28 + , python 29 + , bkcharts 30 + , pillow 31 + , selenium 32 + }: 33 + 34 + buildPythonPackage rec { 35 + pname = "bokeh"; 36 + name = "${pname}${version}"; 37 + version = "0.12.7"; 38 + 39 + src = fetchPypi { 40 + inherit pname version; 41 + sha256 = "2c42c95bf1a418c758dbff8446b4f5e5fc72ac10ea5da4e6b5010067396d0880"; 42 + }; 43 + 44 + disabled = isPyPy; 45 + 46 + # Some test that uses tornado fails 47 + # doCheck = false; 48 + 49 + checkInputs = [ mock pytest pillow selenium ]; 50 + 51 + propagatedBuildInputs = [ 52 + flask 53 + jinja2 54 + markupsafe 55 + werkzeug 56 + itsdangerous 57 + dateutil 58 + requests 59 + six 60 + pygments 61 + pystache 62 + markdown 63 + pyyaml 64 + pyzmq 65 + tornado 66 + colorama 67 + bkcharts 68 + ] 69 + ++ lib.optionals ( !isPy3k ) [ futures ] 70 + ++ lib.optionals ( !isPy3k && !isPyPy ) [ websocket_client ] 71 + ++ lib.optionals ( !isPyPy ) [ numpy pandas greenlet ]; 72 + 73 + checkPhase = '' 74 + ${python.interpreter} -m unittest discover -s bokeh/tests 75 + ''; 76 + 77 + meta = { 78 + description = "Statistical and novel interactive HTML plots for Python"; 79 + homepage = "http://github.com/bokeh/bokeh"; 80 + license = lib.licenses.bsd3; 81 + }; 82 + }
+22
pkgs/development/python-modules/chardet/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi 2 + , pytest, pytestrunner, hypothesis }: 3 + 4 + buildPythonPackage rec { 5 + name = "${pname}-${version}"; 6 + pname = "chardet"; 7 + version = "3.0.4"; 8 + 9 + src = fetchPypi { 10 + inherit pname version; 11 + sha256 = "1bpalpia6r5x1kknbk11p1fzph56fmmnp405ds8icksd3knr5aw4"; 12 + }; 13 + 14 + buildInputs = [ pytest pytestrunner hypothesis ]; 15 + 16 + meta = with stdenv.lib; { 17 + homepage = https://github.com/chardet/chardet; 18 + description = "Universal encoding detector"; 19 + license = licenses.lgpl2; 20 + maintainers = with maintainers; [ domenkozar ]; 21 + }; 22 + }
+28
pkgs/development/python-modules/cheroot/default.nix
··· 1 + { stdenv, fetchPypi, buildPythonPackage 2 + , six 3 + , coverage, codecov, pytest, pytestcov, pytest-sugar, portend 4 + , backports_unittest-mock, setuptools_scm }: 5 + 6 + buildPythonPackage rec { 7 + name = "${pname}-${version}"; 8 + pname = "cheroot"; 9 + version = "5.5.0"; 10 + 11 + src = fetchPypi { 12 + inherit pname version; 13 + sha256 = "1fhyk8lgs2blfx4zjvwsy6f0ynrs5fwnnr3qf07r6c4j3gwlkqsr"; 14 + }; 15 + 16 + propagatedBuildInputs = [ six ]; 17 + buildInputs = [ coverage codecov pytest pytestcov pytest-sugar portend backports_unittest-mock setuptools_scm ]; 18 + 19 + checkPhase = '' 20 + py.test cheroot 21 + ''; 22 + 23 + meta = with stdenv.lib; { 24 + description = "High-performance, pure-Python HTTP"; 25 + homepage = https://github.com/cherrypy/cheroot; 26 + license = licenses.mit; 27 + }; 28 + }
+25
pkgs/development/python-modules/cherrypy/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi, isPy3k 2 + , pytest, setuptools_scm, pytestrunner 3 + , six, cheroot, portend }: 4 + 5 + buildPythonPackage rec { 6 + name = "${pname}-${version}"; 7 + pname = "CherryPy"; 8 + version = "11.0.0"; 9 + 10 + src = fetchPypi { 11 + inherit pname version; 12 + sha256 = "1037pvhab4my791vfzikm649ny52fj7x2q87cnncmbnqin6ghwan"; 13 + }; 14 + 15 + # wsgiserver.ssl_pyopenssl is broken on py3k. 16 + doCheck = !isPy3k; 17 + buildInputs = [ pytest setuptools_scm pytestrunner ]; 18 + propagatedBuildInputs = [ six cheroot portend ]; 19 + 20 + meta = with stdenv.lib; { 21 + homepage = "http://www.cherrypy.org"; 22 + description = "A pythonic, object-oriented HTTP framework"; 23 + license = licenses.bsd3; 24 + }; 25 + }
+21
pkgs/development/python-modules/contextlib2/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + }: 5 + 6 + buildPythonPackage rec { 7 + pname = "contextlib2"; 8 + version = "0.5.5"; 9 + name = "${pname}-${version}"; 10 + 11 + src = fetchPypi rec { 12 + inherit pname version; 13 + sha256 = "509f9419ee91cdd00ba34443217d5ca51f5a364a404e1dce9e8979cea969ca48"; 14 + }; 15 + 16 + meta = { 17 + description = "Backports and enhancements for the contextlib module"; 18 + homepage = http://contextlib2.readthedocs.org/; 19 + license = lib.licenses.psfl; 20 + }; 21 + }
+27
pkgs/development/python-modules/coverage/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , isPy3k 5 + , mock 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "coverage"; 10 + version = "4.4.1"; 11 + name = "${pname}-${version}"; 12 + 13 + src = fetchPypi { 14 + inherit pname version; 15 + sha256 = "7a9c44400ee0f3b4546066e0710e1250fd75831adc02ab99dda176ad8726f424"; 16 + }; 17 + 18 + # No tests in archive 19 + doCheck = false; 20 + checkInputs = [ mock ]; 21 + 22 + meta = { 23 + description = "Code coverage measurement for python"; 24 + homepage = http://nedbatchelder.com/code/coverage/; 25 + license = lib.licenses.bsd3; 26 + }; 27 + }
+2 -2
pkgs/development/python-modules/dask/default.nix
··· 12 12 13 13 buildPythonPackage rec { 14 14 pname = "dask"; 15 - version = "0.15.1"; 15 + version = "0.15.2"; 16 16 name = "${pname}-${version}"; 17 17 18 18 src = fetchPypi { 19 19 inherit pname version; 20 - sha256 = "f62f19ab5958b13d0ee733db18218c28a9d452a3554446a3dfb5ac3d4a5f7e34"; 20 + sha256 = "abe6758540fdbc260f14ee71cebc3ab88682e24ff147afa89375b7006f57d3ed"; 21 21 }; 22 22 23 23 checkInputs = [ pytest ];
+6 -6
pkgs/development/python-modules/dateutil/default.nix
··· 1 - { stdenv, buildPythonPackage, fetchurl, six }: 1 + { stdenv, buildPythonPackage, fetchPypi, six }: 2 2 buildPythonPackage rec { 3 - pname = "dateutil"; 4 3 name = "${pname}-${version}"; 5 - version = "2.6.0"; 4 + pname = "python-dateutil"; 5 + version = "2.6.1"; 6 6 7 - src = fetchurl { 8 - url = "mirror://pypi/p/python-dateutil/python-${name}.tar.gz"; 9 - sha256 = "1lhq0hxjc3cfha101q02ld5ijlpfyjn2w1yh7wvpiy367pgzi8k2"; 7 + src = fetchPypi { 8 + inherit pname version; 9 + sha256 = "1jkahssf0ir5ssxc3ydbp8cpv77limn8d4s77szb2nrgl2r3h749"; 10 10 }; 11 11 12 12 propagatedBuildInputs = [ six ];
+32
pkgs/development/python-modules/dill/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , python 5 + }: 6 + 7 + buildPythonPackage rec { 8 + pname = "dill"; 9 + version = "0.2.7.1"; 10 + name = "${pname}-${version}"; 11 + 12 + src = fetchPypi { 13 + inherit pname version; 14 + sha256 = "97fd758f5fe742d42b11ec8318ecfcff8776bccacbfcec05dfd6276f5d450f73"; 15 + }; 16 + 17 + # Messy test suite. Even when running the tests like tox does, it fails 18 + doCheck = false; 19 + checkPhase = '' 20 + for test in tests/*.py; do 21 + ${python.interpreter} $test 22 + done 23 + ''; 24 + # Following error without setting checkPhase 25 + # TypeError: don't know how to make test from: {'byref': False, 'recurse': False, 'protocol': 3, 'fmode': 0} 26 + 27 + meta = { 28 + description = "Serialize all of python (almost)"; 29 + homepage = http://www.cacr.caltech.edu/~mmckerns/dill.htm; 30 + license = lib.licenses.bsd3; 31 + }; 32 + }
+5 -2
pkgs/development/python-modules/discordpy/default.nix
··· 11 11 12 12 let 13 13 pname = "discord.py"; 14 - version = "0.16.10"; 14 + version = "0.16.11"; 15 15 in buildPythonPackage rec { 16 16 name = "${pname}-${version}"; 17 17 18 18 src = fetchurl { 19 19 url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; 20 - sha256 = "cb0b9ad5f5edf2d5afd5f5ce07381a0a089eb036004938126a5582fc8fa0cc88"; 20 + sha256 = "eb3c6faa7d4570cce05533d0742bbcb768629e2b3ba9e1cc79c05833db91ac4d"; 21 21 }; 22 22 23 23 propagatedBuildInputs = [ asyncio aiohttp websockets pynacl ]; ··· 30 30 ''; 31 31 32 32 disabled = pythonOlder "3.5"; 33 + 34 + # No tests in archive 35 + doCheck = false; 33 36 34 37 meta = { 35 38 description = "A python wrapper for the Discord API";
+32
pkgs/development/python-modules/doc8/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pbr 5 + , docutils 6 + , six 7 + , chardet 8 + , stevedore 9 + , restructuredtext_lint 10 + }: 11 + 12 + buildPythonPackage rec { 13 + pname = "doc8"; 14 + version = "0.8.0"; 15 + name = "${pname}-${version}"; 16 + 17 + src = fetchPypi { 18 + inherit pname version; 19 + sha256 = "2df89f9c1a5abfb98ab55d0175fed633cae0cf45025b8b1e0ee5ea772be28543"; 20 + }; 21 + 22 + buildInputs = [ pbr ]; 23 + propagatedBuildInputs = [ docutils six chardet stevedore restructuredtext_lint ]; 24 + 25 + doCheck = false; 26 + 27 + meta = { 28 + description = "Style checker for Sphinx (or other) RST documentation"; 29 + homepage = "https://launchpad.net/doc8"; 30 + license = lib.licenses.asl20; 31 + }; 32 + }
+31
pkgs/development/python-modules/entrypoints/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , configparser 5 + , pytest 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "entrypoints"; 10 + version = "0.2.3"; 11 + name = "${pname}-${version}"; 12 + 13 + src = fetchPypi { 14 + inherit pname version; 15 + sha256 = "d2d587dde06f99545fb13a383d2cd336a8ff1f359c5839ce3a64c917d10c029f"; 16 + }; 17 + 18 + checkInputs = [ pytest]; 19 + 20 + propagatedBuildInputs = [ configparser ]; 21 + 22 + checkPhase = '' 23 + py.test tests 24 + ''; 25 + 26 + meta = { 27 + description = "Discover and load entry points from installed packages"; 28 + homepage = https://github.com/takluyver/entrypoints; 29 + license = lib.licenses.mit; 30 + }; 31 + }
+20
pkgs/development/python-modules/flask-compress/default.nix
··· 1 + { stdenv, fetchPypi, buildPythonPackage, flask }: 2 + 3 + buildPythonPackage rec { 4 + name = "${pname}-${version}"; 5 + version = "1.4.0"; 6 + pname = "Flask-Compress"; 7 + 8 + src = fetchPypi { 9 + inherit pname version; 10 + sha256 = "1cxdbdiyxkspg7vkchfmaqr7c6q79gwvakna3fjcc6nivps971j6"; 11 + }; 12 + 13 + propagatedBuildInputs = [ flask ]; 14 + 15 + meta = with stdenv.lib; { 16 + description = "Compress responses in your Flask app with gzip"; 17 + homepage = "https://libwilliam.github.io/flask-compress/"; 18 + license = licenses.mit; 19 + }; 20 + }
+22
pkgs/development/python-modules/flask-cors/default.nix
··· 1 + { stdenv, fetchPypi, buildPythonPackage 2 + , nose, flask, six }: 3 + 4 + buildPythonPackage rec { 5 + name = "${pname}-${version}"; 6 + pname = "Flask-Cors"; 7 + version = "3.0.3"; 8 + 9 + src = fetchPypi { 10 + inherit pname version; 11 + sha256 = "62ebc5ad80dc21ca0ea9f57466c2c74e24a62274af890b391790c260eb7b754b"; 12 + }; 13 + 14 + buildInputs = [ nose ]; 15 + propagatedBuildInputs = [ flask six ]; 16 + 17 + meta = with stdenv.lib; { 18 + description = "A Flask extension adding a decorator for CORS support"; 19 + homepage = https://github.com/corydolphin/flask-cors; 20 + license = with licenses; [ mit ]; 21 + }; 22 + }
+2 -2
pkgs/development/python-modules/flask-migrate/default.nix
··· 5 5 6 6 buildPythonPackage rec { 7 7 pname = "Flask-Migrate"; 8 - version = "2.1.0"; 8 + version = "2.1.1"; 9 9 name = "${pname}-${version}"; 10 10 11 11 src = fetchPypi { 12 12 inherit pname version; 13 - sha256 = "716d5b68eec53821f80b3fbcb0fd60baed0cb0e320abb30289e83217668cef7f"; 13 + sha256 = "b709ca8642559c3c5a81a33ab10839fa052177accd5ba821047a99db635255ed"; 14 14 }; 15 15 16 16 checkInputs = optional isPy3k glibcLocales;
+29
pkgs/development/python-modules/flask-restful/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi, isPy3k 2 + , nose, mock, blinker 3 + , flask, six, pytz, aniso8601, pycrypto 4 + }: 5 + 6 + buildPythonPackage rec { 7 + name = "${pname}-${version}"; 8 + pname = "Flask-RESTful"; 9 + version = "0.3.6"; 10 + 11 + src = fetchPypi { 12 + inherit pname version; 13 + sha256 = "01rlvl2iq074ciyn4schmjip7cyplkwkysbb8f610zil06am35ap"; 14 + }; 15 + 16 + # TypeError: Only byte strings can be passed to C code 17 + patchPhase = if isPy3k then '' 18 + rm tests/test_crypto.py tests/test_paging.py 19 + '' else null; 20 + buildInputs = [ nose mock blinker ]; 21 + propagatedBuildInputs = [ flask six pytz aniso8601 pycrypto ]; 22 + PYTHON_EGG_CACHE = "`pwd`/.egg-cache"; 23 + 24 + meta = with stdenv.lib; { 25 + homepage = "http://flask-restful.readthedocs.io/"; 26 + description = "REST API building blocks for Flask"; 27 + license = licenses.bsd3; 28 + }; 29 + }
-42
pkgs/development/python-modules/flask-restplus/0.8.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchPypi 4 - , nose 5 - , blinker 6 - , tzlocal 7 - , mock 8 - , rednose 9 - , flask 10 - , six 11 - , jsonschema 12 - , pytz 13 - , aniso8601 14 - , flask-restful 15 - }: 16 - 17 - buildPythonPackage rec { 18 - pname = "flask-restplus"; 19 - version = "0.8.6"; 20 - name = "${pname}-${version}"; 21 - 22 - src = fetchPypi { 23 - inherit pname version; 24 - sha256 = "3bb76cc156b9a09da62396d82b29fa31e4f27cccf79528538fe7155cf2785593"; 25 - }; 26 - 27 - checkInputs = [ nose blinker tzlocal mock rednose ]; 28 - propagatedBuildInputs = [ flask six jsonschema pytz aniso8601 flask-restful ]; 29 - 30 - # RuntimeError: Working outside of application context. 31 - doCheck = false; 32 - 33 - checkPhase = '' 34 - nosetests 35 - ''; 36 - 37 - meta = { 38 - homepage = https://github.com/noirbizarre/flask-restplus; 39 - description = "Fast, easy and documented API development with Flask"; 40 - license = lib.licenses.mit; 41 - }; 42 - }
+21
pkgs/development/python-modules/flask/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi 2 + , itsdangerous, click, werkzeug, jinja2 }: 3 + 4 + buildPythonPackage rec { 5 + name = "${pname}-${version}"; 6 + version = "0.12.2"; 7 + pname = "Flask"; 8 + 9 + src = fetchPypi { 10 + inherit pname version; 11 + sha256 = "1hfs2jr2m5lr51xd4gblb28rncd0xrpycz6c07cyqsbv4dhl9x29"; 12 + }; 13 + 14 + propagatedBuildInputs = [ itsdangerous click werkzeug jinja2 ]; 15 + 16 + meta = with stdenv.lib; { 17 + homepage = http://flask.pocoo.org/; 18 + description = "A microframework based on Werkzeug, Jinja 2, and good intentions"; 19 + license = licenses.bsd3; 20 + }; 21 + }
+50
pkgs/development/python-modules/flit/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , fetchurl 5 + , isPy3k 6 + , docutils 7 + , requests 8 + , requests_download 9 + , zipfile36 10 + , pythonOlder 11 + , pytest 12 + , testpath 13 + , responses 14 + }: 15 + 16 + # Flit is actually an application to build universal wheels. 17 + # It requires Python 3 and should eventually be moved outside of 18 + # python-packages.nix. When it will be used to build wheels, 19 + # care should be taken that there is no mingling of PYTHONPATH. 20 + 21 + buildPythonPackage rec { 22 + pname = "flit"; 23 + version = "0.11.4"; 24 + name = "${pname}-${version}"; 25 + 26 + # format = "wheel"; 27 + 28 + src = fetchPypi { 29 + inherit pname version; 30 + # url = https://files.pythonhosted.org/packages/24/98/50a090112a04d9e29155c31a222637668b0a4dd778fefcd3132adc50e877/flit-0.10-py3-none-any.whl; 31 + sha256 = "8ba7603cc3bf4149d81811d40fe331abc45ff37a207c63f5f712a0fdb69297bb"; 32 + }; 33 + 34 + disabled = !isPy3k; 35 + propagatedBuildInputs = [ docutils requests requests_download ] ++ lib.optional (pythonOlder "3.6") zipfile36; 36 + 37 + checkInputs = [ pytest testpath responses ]; 38 + 39 + # Disable test that needs some ini file. 40 + checkPhase = '' 41 + py.test -k "not test_invalid_classifier" 42 + ''; 43 + 44 + meta = { 45 + description = "A simple packaging tool for simple packages"; 46 + homepage = https://github.com/takluyver/flit; 47 + license = lib.licenses.bsd3; 48 + maintainer = lib.maintainers.fridh; 49 + }; 50 + }
+32
pkgs/development/python-modules/guessit/2.0.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pytestrunner 5 + , dateutil 6 + , babelfish 7 + , rebulk 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "guessit"; 12 + version = "2.0.4"; 13 + name = "${pname}-${version}"; 14 + 15 + src = fetchPypi { 16 + inherit pname version; 17 + sha256 = "1cfcgb0px6i9jl8nwkx8j06j4y6p5975a9pfmd8lcacwr8gy4wjg"; 18 + }; 19 + 20 + # Tests require more packages. 21 + doCheck = false; 22 + buildInputs = [ pytestrunner ]; 23 + propagatedBuildInputs = [ 24 + dateutil babelfish rebulk 25 + ]; 26 + 27 + meta = { 28 + homepage = http://pypi.python.org/pypi/guessit; 29 + license = lib.licenses.lgpl3; 30 + description = "A library for guessing information from video files"; 31 + }; 32 + }
+2 -2
pkgs/development/python-modules/h5py/default.nix
··· 11 11 mpiSupport = hdf5.mpiSupport; 12 12 13 13 in buildPythonPackage rec { 14 - version = "2.7.0"; 14 + version = "2.7.1"; 15 15 pname = "h5py"; 16 16 name = "${pname}-${version}"; 17 17 18 18 src = fetchurl { 19 19 url = "mirror://pypi/h/h5py/${name}.tar.gz"; 20 - sha256 = "79254312df2e6154c4928f5e3b22f7a2847b6e5ffb05ddc33e37b16e76d36310"; 20 + sha256 = "180a688311e826ff6ae6d3bda9b5c292b90b28787525ddfcb10a29d5ddcae2cc"; 21 21 }; 22 22 23 23 configure_flags = "--hdf5=${hdf5}" + optionalString mpiSupport " --mpi";
+31
pkgs/development/python-modules/jinja2/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi 2 + , markupsafe }: 3 + 4 + buildPythonPackage rec { 5 + pname = "Jinja2"; 6 + version = "2.9.6"; 7 + name = "${pname}-${version}"; 8 + 9 + src = fetchPypi { 10 + inherit pname version; 11 + sha256 = "1zzrkywhziqffrzks14kzixz7nd4yh2vc0fb04a68vfd2ai03anx"; 12 + }; 13 + 14 + propagatedBuildInputs = [ markupsafe ]; 15 + 16 + # No tests included 17 + doCheck = false; 18 + 19 + meta = with stdenv.lib; { 20 + homepage = http://jinja.pocoo.org/; 21 + description = "Stand-alone template engine"; 22 + license = licenses.bsd3; 23 + longDescription = '' 24 + Jinja2 is a template engine written in pure Python. It provides a 25 + Django inspired non-XML syntax but supports inline expressions and 26 + an optional sandboxed environment. 27 + ''; 28 + platforms = platforms.all; 29 + maintainers = with maintainers; [ pierron garbas sjourdois ]; 30 + }; 31 + }
+30
pkgs/development/python-modules/jsonschema/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi, python 2 + , nose, mock, vcversioner, functools32 }: 3 + 4 + buildPythonPackage rec { 5 + name = "${pname}-${version}"; 6 + pname = "jsonschema"; 7 + version = "2.6.0"; 8 + 9 + src = fetchPypi { 10 + inherit pname version; 11 + sha256 = "00kf3zmpp9ya4sydffpifn0j0mzm342a2vzh82p6r0vh10cg7xbg"; 12 + }; 13 + 14 + buildInputs = [ nose mock vcversioner ]; 15 + propagatedBuildInputs = [ functools32 ]; 16 + 17 + patchPhase = '' 18 + substituteInPlace jsonschema/tests/test_jsonschema_test_suite.py \ 19 + --replace "python" "${python}/bin/${python.executable}" 20 + ''; 21 + 22 + checkPhase = "nosetests"; 23 + 24 + meta = with stdenv.lib; { 25 + homepage = https://github.com/Julian/jsonschema; 26 + description = "An implementation of JSON Schema validation for Python"; 27 + license = licenses.mit; 28 + maintainers = with maintainers; [ domenkozar ]; 29 + }; 30 + }
+2 -2
pkgs/development/python-modules/keras/default.nix
··· 12 12 13 13 buildPythonPackage rec { 14 14 pname = "Keras"; 15 - version = "2.0.7"; 15 + version = "2.0.8"; 16 16 name = "${pname}-${version}"; 17 17 18 18 src = fetchPypi { 19 19 inherit pname version; 20 - sha256 = "a6c72ee2b94be1ffefe7e77b69582b9827211f0c356b2189459711844d3634c0"; 20 + sha256 = "899dc6aaed366f20100b9f80cf1093ea5b43eecc74afd1dc63a4e48dfa776ab9"; 21 21 }; 22 22 23 23 checkInputs = [
+2 -2
pkgs/development/python-modules/m2r/default.nix
··· 3 3 buildPythonPackage rec { 4 4 pname = "m2r"; 5 5 name = "${pname}-${version}"; 6 - version = "0.1.10"; 6 + version = "0.1.11"; 7 7 8 8 src = fetchPypi { 9 9 inherit pname version; 10 - sha256 = "cfb5b8a37defdd594eb46a794b87d9b4ca1902b0e8e309c9f2623f7275c261d6"; 10 + sha256 = "7e69fe9b2752926c33399709e354da3bcca60043c7bf5e727b7126ec3a5db7db"; 11 11 }; 12 12 13 13 propagatedBuildInputs = [ mistune docutils ];
+3 -5
pkgs/development/python-modules/magic-wormhole/default.nix
··· 17 17 , humanize 18 18 , pyopenssl 19 19 , service-identity 20 + , txtorcon 20 21 }: 21 22 22 23 buildPythonPackage rec { ··· 31 32 32 33 checkInputs = [ mock ]; 33 34 buildInputs = [ nettools glibcLocales ]; 34 - propagatedBuildInputs = [ autobahn cffi click hkdf pynacl spake2 tqdm ipaddress humanize pyopenssl service-identity ]; 35 + propagatedBuildInputs = [ autobahn cffi click hkdf pynacl spake2 tqdm ipaddress humanize pyopenssl service-identity txtorcon ]; 35 36 36 37 postPatch = '' 37 38 sed -i -e "s|'ifconfig'|'${nettools}/bin/ifconfig'|" src/wormhole/ipaddrs.py 38 - sed -i -e "s|if (os.path.dirname(os.path.abspath(wormhole))|if not os.path.abspath(wormhole).startswith('/nix/store') and (os.path.dirname(os.path.abspath(wormhole))|" src/wormhole/test/test_scripts.py 39 - # XXX: disable one test due to warning: 40 - # setlocale: LC_ALL: cannot change locale (en_US.UTF-8) 41 - sed -i -e "s|def test_text_subprocess|def skip_test_text_subprocess|" src/wormhole/test/test_scripts.py 39 + sed -i -e "s|if (os.path.dirname(os.path.abspath(wormhole))|if not os.path.abspath(wormhole).startswith('/nix/store') and (os.path.dirname(os.path.abspath(wormhole))|" src/wormhole/test/test_cli.py 42 40 '' + lib.optionalString (pythonAtLeast "3.3") '' 43 41 sed -i -e 's|"ipaddress",||' setup.py 44 42 '';
+2 -1
pkgs/development/python-modules/multidict/default.nix
··· 3 3 , buildPythonPackage 4 4 , pytest 5 5 , isPy3k 6 + , psutil 6 7 }: 7 8 8 9 let ··· 16 17 sha256 = "875f80a046e7799b40df4b015b8fc5dae91697936872a8d7362c909a02ec6d12"; 17 18 }; 18 19 19 - buildInputs = [ pytest ]; 20 + checkInputs = [ pytest psutil ]; 20 21 21 22 checkPhase = '' 22 23 py.test
+33
pkgs/development/python-modules/openpyxl/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pytest 5 + , jdcal 6 + , et_xmlfile 7 + , lxml 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "openpyxl"; 12 + version = "2.4.8"; 13 + name = "${pname}-${version}"; 14 + 15 + src = fetchPypi { 16 + inherit pname version; 17 + sha256 = "ee7551efb70648fa8ee569c2b6a6dbbeff390cc94b321da5d508a573b90a4f17"; 18 + }; 19 + 20 + checkInputs = [ pytest ]; 21 + propagatedBuildInputs = [ jdcal et_xmlfile lxml ]; 22 + 23 + # Tests are not included in archive. 24 + # https://bitbucket.org/openpyxl/openpyxl/issues/610 25 + doCheck = false; 26 + 27 + meta = { 28 + description = "A Python library to read/write Excel 2007 xlsx/xlsm files"; 29 + homepage = https://openpyxl.readthedocs.org; 30 + license = lib.licenses.mit; 31 + maintainers = with lib.maintainers; [ lihop sjourdois ]; 32 + }; 33 + }
+3
pkgs/development/python-modules/oslo-config/default.nix
··· 19 19 postPatch = '' 20 20 substituteInPlace requirements.txt --replace "argparse" "" 21 21 ''; 22 + 23 + # Requires a bunch of new packages 24 + meta.broken = true; 22 25 }
+6 -1
pkgs/development/python-modules/pandas/default.nix
··· 76 76 chmod a+x pbcopy pbpaste 77 77 export PATH=$(pwd):$PATH 78 78 '' + '' 79 + # since dateutil 0.6.0 the following fails: test_fallback_plural, test_ambiguous_flags, test_ambiguous_compat 80 + # was supposed to be solved by https://github.com/dateutil/dateutil/issues/321, but is not the case 79 81 py.test $out/${python.sitePackages}/pandas --skip-slow --skip-network \ 80 - ${if isDarwin then "-k 'not test_locale and not test_clipboard'" else ""} 82 + -k "not test_fallback_plural and \ 83 + not test_ambiguous_flags and \ 84 + not test_ambiguous_compat \ 85 + ${optionalString isDarwin "and not test_locale and not test_clipboard"}" 81 86 runHook postCheck 82 87 ''; 83 88
+23
pkgs/development/python-modules/portend/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi 2 + , pytest, pytest-sugar, pytest-warnings, setuptools_scm 3 + , tempora }: 4 + 5 + buildPythonPackage rec { 6 + name = "${pname}-${version}"; 7 + pname = "portend"; 8 + version = "2.1.2"; 9 + 10 + buildInputs = [ pytest pytest-sugar pytest-warnings setuptools_scm ]; 11 + propagatedBuildInputs = [ tempora ]; 12 + 13 + src = fetchPypi { 14 + inherit pname version; 15 + sha256 = "0dx8b1rn64ymx5s4mdzlw5hz59qi167z7nny36dl75ghlldn41w4"; 16 + }; 17 + 18 + meta = with stdenv.lib; { 19 + description = "Monitor TCP ports for bound or unbound states"; 20 + homepage = https://github.com/jaraco/portend; 21 + license = licenses.bsd3; 22 + }; 23 + }
+40
pkgs/development/python-modules/prompt_toolkit/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pytest 5 + , docopt 6 + , six 7 + , wcwidth 8 + , pygments 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "prompt_toolkit"; 13 + name = "${pname}-${version}"; 14 + version = "1.0.15"; 15 + 16 + src = fetchPypi { 17 + inherit pname version; 18 + sha256 = "858588f1983ca497f1cf4ffde01d978a3ea02b01c8a26a8bbc5cd2e66d816917"; 19 + }; 20 + checkPhase = '' 21 + rm prompt_toolkit/win32_types.py 22 + py.test -k 'not test_pathcompleter_can_expanduser' 23 + ''; 24 + 25 + checkInputs = [ pytest ]; 26 + propagatedBuildInputs = [ docopt six wcwidth pygments ]; 27 + 28 + meta = { 29 + description = "Python library for building powerful interactive command lines"; 30 + longDescription = '' 31 + prompt_toolkit could be a replacement for readline, but it can be 32 + much more than that. It is cross-platform, everything that you build 33 + with it should run fine on both Unix and Windows systems. Also ships 34 + with a nice interactive Python shell (called ptpython) built on top. 35 + ''; 36 + homepage = https://github.com/jonathanslenders/python-prompt-toolkit; 37 + license = lib.licenses.bsd3; 38 + maintainers = with lib.maintainers; [ nckx ]; 39 + }; 40 + }
+2 -2
pkgs/development/python-modules/pycryptodome/default.nix
··· 1 1 { stdenv, fetchurl, python, buildPythonPackage, gmp }: 2 2 3 3 buildPythonPackage rec { 4 - version = "3.4.6"; 4 + version = "3.4.7"; 5 5 pname = "pycryptodome"; 6 6 name = "${pname}-${version}"; 7 7 8 8 src = fetchurl { 9 9 url = "mirror://pypi/p/pycryptodome/${name}.tar.gz"; 10 - sha256 = "df1be662060cf3abdcf2086ebb401f750744106425ddebf74c57feab410e4923"; 10 + sha256 = "18d8dfe31bf0cb53d58694903e526be68f3cf48e6e3c6dfbbc1e7042b1693af7"; 11 11 }; 12 12 13 13 meta = {
+2 -2
pkgs/development/python-modules/pyroute2/default.nix
··· 2 2 3 3 buildPythonPackage rec { 4 4 pname = "pyroute2"; 5 - version = "0.4.19"; 5 + version = "0.4.21"; 6 6 name = "${pname}-${version}"; 7 7 8 8 src = fetchurl { 9 9 url = "mirror://pypi/p/pyroute2/${name}.tar.gz"; 10 - sha256 = "122a1e34702287b805742a6edd8fe8483608238bd1602df2d5e3274bd8e8030a"; 10 + sha256 = "7afad28ee0a0f3e7c34adaa9f953d00560ed9910203e93f107833b6e8d151171"; 11 11 }; 12 12 13 13 # requires root priviledges
+2 -2
pkgs/development/python-modules/pyshp/default.nix
··· 2 2 , setuptools }: 3 3 4 4 buildPythonPackage rec { 5 - version = "1.2.3"; 5 + version = "1.2.12"; 6 6 pname = "pyshp"; 7 7 name = "${pname}-${version}"; 8 8 9 9 src = fetchPypi { 10 10 inherit pname version; 11 - sha256 = "e18cc19659dadc5ddaa891eb780a6958094da0cf105a1efe0f67e75b4fa1cdf9"; 11 + sha256 = "8dcd65e0aa2aa2951527ddb7339ea6e69023543d8a20a73fc51e2829b9ed6179"; 12 12 }; 13 13 14 14 buildInputs = [ setuptools ];
+11 -1
pkgs/development/python-modules/pytest-flake8/default.nix
··· 1 - {lib, buildPythonPackage, fetchPypi, pytest, flake8}: 1 + {lib, buildPythonPackage, fetchPypi, fetchpatch, pytest, flake8}: 2 2 3 3 buildPythonPackage rec { 4 4 name = "${pname}-${version}"; ··· 15 15 inherit pname version; 16 16 sha256 = "1za5i09gz127yraigmcl443w6149714l279rmlfxg1bl2kdsc45a"; 17 17 }; 18 + 19 + patches = [ 20 + # Fix pytest strict mode (pull request #24) 21 + # https://github.com/tholo/pytest-flake8/pull/24 22 + (fetchpatch { 23 + name = "fix-compatibility-with-pytest-strict-mode.patch"; 24 + url = "https://github.com/tholo/pytest-flake8/commit/434e1b07b4b77bfe1ddb9b2b54470c6c3815bb1a.patch"; 25 + sha256 = "0idwgkwwysx2cibnykd81yxrgqzkpf42j99jmpnanqzi99qnc3wx"; 26 + }) 27 + ]; 18 28 19 29 checkPhase = '' 20 30 pytest --ignore=nix_run_setup.py .
+20
pkgs/development/python-modules/pytest-sugar/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi, termcolor, pytest }: 2 + 3 + buildPythonPackage rec { 4 + name = "${pname}-${version}"; 5 + pname = "pytest-sugar"; 6 + version = "0.9.0"; 7 + 8 + src = fetchPypi { 9 + inherit pname version; 10 + sha256 = "11lni9kn0r1y896xg20qjv4yjcyr56h0hx9dprdgjnam4dqcl6lg"; 11 + }; 12 + 13 + propagatedBuildInputs = [ termcolor pytest ]; 14 + 15 + meta = with stdenv.lib; { 16 + description = "A plugin that changes the default look and feel of py.test"; 17 + homepage = https://github.com/Frozenball/pytest-sugar; 18 + license = licenses.bsd3; 19 + }; 20 + }
+20
pkgs/development/python-modules/pytest-warnings/default.nix
··· 1 + { lib, buildPythonPackage, fetchPypi, pytest }: 2 + 3 + buildPythonPackage rec { 4 + name = "${pname}-${version}"; 5 + pname = "pytest-warnings"; 6 + version = "0.3.0"; 7 + 8 + src = fetchPypi { 9 + inherit pname version; 10 + sha256 = "18yxh153icmndaw8fkl1va0bk0mwzrbpaa6wxd29w3iwxym5zn2a"; 11 + }; 12 + 13 + propagatedBuildInputs = [ pytest ]; 14 + 15 + meta = { 16 + description = "Plugin to list Python warnings in pytest report"; 17 + homepage = github.com/fschulze/pytest-warnings; 18 + license = lib.licenses.mit; 19 + }; 20 + }
+2 -2
pkgs/development/python-modules/pytimeparse/default.nix
··· 2 2 3 3 buildPythonPackage rec { 4 4 pname = "pytimeparse"; 5 - version = "1.1.6"; 5 + version = "1.1.7"; 6 6 name = "${pname}-${version}"; 7 7 8 8 src = fetchPypi { 9 9 inherit pname version; 10 - sha256 = "0imbb68i5n5fm704gv47if1blpxd4f8g16qmp5ar07cavgh2mibl"; 10 + sha256 = "51b641bcd435e0cb6b9701ed79cf7ee97fa6bf2dbb5d41baa16e5486e5d9b17a"; 11 11 }; 12 12 13 13 propagatedBuildInputs = [ nose ];
+25
pkgs/development/python-modules/requests/default.nix
··· 1 + { stdenv, fetchPypi, buildPythonPackage 2 + , urllib3, idna, chardet, certifi 3 + , pytest }: 4 + 5 + buildPythonPackage rec { 6 + name = "${pname}-${version}"; 7 + pname = "requests"; 8 + version = "2.18.4"; 9 + 10 + src = fetchPypi { 11 + inherit pname version; 12 + sha256 = "0zi3v9nsmv9j27d0c0m1dvqyvaxz53g8m0aa1h3qanxs4irkwi4w"; 13 + }; 14 + 15 + nativeBuildInputs = [ pytest ]; 16 + propagatedBuildInputs = [ urllib3 idna chardet certifi ]; 17 + # sadly, tests require networking 18 + doCheck = false; 19 + 20 + meta = with stdenv.lib; { 21 + description = "An Apache2 licensed HTTP library, written in Python, for human beings"; 22 + homepage = http://docs.python-requests.org/en/latest/; 23 + license = licenses.asl20; 24 + }; 25 + }
+34
pkgs/development/python-modules/restructuredtext_lint/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , docutils 5 + , nose 6 + , stdenv 7 + , flake8 8 + , pyyaml 9 + , testtools 10 + }: 11 + 12 + buildPythonPackage rec { 13 + pname = "restructuredtext_lint"; 14 + version = "1.1.1"; 15 + name = "${pname}-${version}"; 16 + 17 + src = fetchPypi { 18 + inherit pname version; 19 + sha256 = "167e8adaa5bdc30531ee91760d6c216b306a8a3372aad34b1f72d8adcc5e011e"; 20 + }; 21 + 22 + checkInputs = [ nose flake8 pyyaml testtools ]; 23 + propagatedBuildInputs = [ docutils ]; 24 + 25 + checkPhase = '' 26 + ${stdenv.shell} test.sh 27 + ''; 28 + 29 + meta = { 30 + description = "reStructuredText linter"; 31 + homepage = https://github.com/twolfson/restructuredtext-lint; 32 + license = lib.licenses.unlicense; 33 + }; 34 + }
+2 -2
pkgs/development/python-modules/semver/default.nix
··· 3 3 buildPythonPackage rec { 4 4 name = "${pname}-${version}"; 5 5 pname = "semver"; 6 - version = "2.7.7"; 6 + version = "2.7.8"; 7 7 8 8 src = fetchPypi { 9 9 inherit pname version; 10 - sha256 = "20ffbb50248a6141bb9eba907db0e47ee4a239ddb55fe0ada8696fc241495a9d"; 10 + sha256 = "a6212f5c552452e306502ac8476bbca48af62db29c4528fdd91d319d0a44b07b"; 11 11 }; 12 12 13 13 # No tests in archive
+38
pkgs/development/python-modules/service_identity/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , characteristic 5 + , pyasn1 6 + , pyasn1-modules 7 + , pyopenssl 8 + , idna 9 + , attrs 10 + , pytest 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "service_identity"; 15 + version = "17.0.0"; 16 + name = "${pname}-${version}"; 17 + 18 + 19 + src = fetchPypi { 20 + inherit pname version; 21 + sha256 = "4001fbb3da19e0df22c47a06d29681a398473af4aa9d745eca525b3b2c2302ab"; 22 + }; 23 + 24 + propagatedBuildInputs = [ 25 + characteristic pyasn1 pyasn1-modules pyopenssl idna attrs 26 + ]; 27 + 28 + checkInputs = [ 29 + pytest 30 + ]; 31 + 32 + checkPhase = '' 33 + py.test 34 + ''; 35 + 36 + # Tests not included in archive 37 + doCheck = false; 38 + }
+35
pkgs/development/python-modules/sphinx-testing/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , mock 5 + , sphinx 6 + , six 7 + , python 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "sphinx-testing"; 12 + version = "0.7.2"; 13 + name = "${pname}-${version}"; 14 + 15 + src = fetchPypi { 16 + inherit pname version; 17 + sha256 = "9d30f93007620e137b33edf19f52a7225eab853546b7e588ef09d1342e821e94"; 18 + }; 19 + 20 + checkInputs = [ mock ]; 21 + propagatedBuildInputs = [ sphinx six ]; 22 + 23 + checkPhase = '' 24 + ${python.interpreter} -m unittest discover -s tests 25 + ''; 26 + 27 + # Test failures https://github.com/sphinx-doc/sphinx-testing/issues/5 28 + doCheck = false; 29 + 30 + meta = { 31 + homepage = https://github.com/sphinx-doc/sphinx-testing; 32 + license = lib.licenses.bsd2; 33 + description = "Testing utility classes and functions for Sphinx extensions"; 34 + }; 35 + }
+4 -1
pkgs/development/python-modules/sqlalchemy-migrate/default.nix
··· 12 12 sha256 = "0ld2bihp9kmf57ykgzrfgxs4j9kxlw79sgdj9sfn47snw3izb2p6"; 13 13 }; 14 14 15 - buildInputs = [ unittest2 scripttest pytz pylint tempest-lib mock testtools ]; 15 + checkInputs = [ unittest2 scripttest pytz pylint mock testtools ]; 16 16 propagatedBuildInputs = [ pbr tempita decorator sqlalchemy six sqlparse ]; 17 17 18 18 checkPhase = '' ··· 26 26 substituteInPlace migrate/tests/versioning/test_util.py --replace "test_load_model" "noop" 27 27 ${python.interpreter} setup.py test 28 28 ''; 29 + 30 + # Tests require tempest-lib which requires the broken oslo-config 31 + doCheck = false; 29 32 30 33 meta = with stdenv.lib; { 31 34 homepage = http://code.google.com/p/sqlalchemy-migrate/;
+2 -2
pkgs/development/python-modules/sqlmap/default.nix
··· 5 5 6 6 buildPythonPackage rec { 7 7 pname = "sqlmap"; 8 - version = "1.1.8"; 8 + version = "1.1.9"; 9 9 name = "${pname}-${version}"; 10 10 11 11 src = fetchPypi { 12 12 inherit pname version; 13 - sha256 = "f8f88fc7fe0ba81a7558902f87df31c052e27404caa26a160174747afcaebe49"; 13 + sha256 = "3387ba58383f4e8131f109b40e2b001dec436f38cd9b9b78d38871b8608fdd9e"; 14 14 }; 15 15 16 16 # No tests in archive
+6 -5
pkgs/development/python-modules/tempora/default.nix
··· 1 1 { stdenv, buildPythonPackage, fetchPypi 2 - , setuptools_scm, six }: 2 + , setuptools_scm 3 + , six, pytz}: 3 4 4 5 buildPythonPackage rec { 5 - version = "1.4"; 6 + name = "${pname}-${version}"; 6 7 pname = "tempora"; 7 - name = "${pname}-${version}"; 8 + version = "1.8"; 8 9 9 10 src = fetchPypi { 10 11 inherit pname version; 11 - sha256 = "0ysvns22i5hzhl5ln4n86bq10j8xwvd09z8qw1zjr3s0fj3lynza"; 12 + sha256 = "1b29d19r8h5my9kzzywi9khn1qzvk3qzp08k0f4rrsa7qks930l4"; 12 13 }; 13 14 14 15 doCheck = false; 15 16 16 17 buildInputs = [ setuptools_scm ]; 17 18 18 - propagatedBuildInputs = [ six ]; 19 + propagatedBuildInputs = [ six pytz ]; 19 20 }
+38
pkgs/development/python-modules/testtools/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pbr 5 + , python_mimeparse 6 + , extras 7 + , lxml 8 + , unittest2 9 + , traceback2 10 + , isPy3k 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "testtools"; 15 + version = "1.8.0"; 16 + name = "${pname}-${version}"; 17 + 18 + # Python 2 only judging from SyntaxError 19 + # disabled = isPy3k; 20 + 21 + src = fetchPypi { 22 + inherit pname version; 23 + sha256 = "15yxz8d70iy1b1x6gd7spvblq0mjxjardl4vnaqasxafzc069zca"; 24 + }; 25 + 26 + propagatedBuildInputs = [ pbr python_mimeparse extras lxml unittest2 ]; 27 + buildInputs = [ traceback2 ]; 28 + patches = [ ./testtools_support_unittest2.patch ]; 29 + 30 + # No tests in archive 31 + doCheck = false; 32 + 33 + meta = { 34 + description = "A set of extensions to the Python standard library's unit testing framework"; 35 + homepage = http://pypi.python.org/pypi/testtools; 36 + license = lib.licenses.mit; 37 + }; 38 + }
pkgs/development/python-modules/testtools_support_unittest2.patch pkgs/development/python-modules/testtools/testtools_support_unittest2.patch
+2 -2
pkgs/development/python-modules/tornado/default.nix
··· 10 10 11 11 buildPythonPackage rec { 12 12 pname = "tornado"; 13 - version = "4.5.1"; 13 + version = "4.5.2"; 14 14 name = "${pname}-${version}"; 15 15 16 16 propagatedBuildInputs = [ backports_abc backports_ssl_match_hostname certifi singledispatch ]; ··· 23 23 24 24 src = fetchPypi { 25 25 inherit pname version; 26 - sha256 = "db0904a28253cfe53e7dedc765c71596f3c53bb8a866ae50123320ec1a7b73fd"; 26 + sha256 = "1fb8e494cd46c674d86fac5885a3ff87b0e283937a47d74eb3c02a48c9e89ad0"; 27 27 }; 28 28 }
+15 -2
pkgs/development/python-modules/treq/default.nix
··· 1 1 { stdenv, fetchPypi, buildPythonPackage, service-identity, requests, six 2 - , mock, twisted, incremental, pep8 }: 2 + , mock, twisted, incremental, pep8, httpbin 3 + }: 3 4 4 5 buildPythonPackage rec { 5 6 name = "${pname}-${version}"; ··· 11 12 sha256 = "ef72d2d5e0b24bdf29267b608fa33df0ac401743af8524438b073e1fb2b66f16"; 12 13 }; 13 14 14 - propagatedBuildInputs = [ twisted requests six incremental service-identity ]; 15 + propagatedBuildInputs = [ 16 + requests 17 + six 18 + incremental 19 + service-identity 20 + twisted 21 + # twisted [tls] requirements (we should find a way to list "extras") 22 + twisted.extras.tls 23 + ]; 15 24 16 25 checkInputs = [ 17 26 pep8 18 27 mock 28 + httpbin 19 29 ]; 20 30 21 31 postPatch = '' ··· 34 44 pep8 --ignore=E902 treq 35 45 trial treq 36 46 ''; 47 + 48 + # Failing tests https://github.com/twisted/treq/issues/208 49 + doCheck = false; 37 50 38 51 meta = with stdenv.lib; { 39 52 homepage = http://github.com/twisted/treq;
+14 -2
pkgs/development/python-modules/twisted/default.nix
··· 1 - { stdenv, buildPythonPackage, fetchurl, python, 2 - zope_interface, incremental, automat, constantly, hyperlink 1 + { stdenv 2 + , buildPythonPackage 3 + , fetchurl 4 + , python 5 + , zope_interface 6 + , incremental 7 + , automat 8 + , constantly 9 + , hyperlink 10 + , pyopenssl 11 + , service-identity 12 + , idna 3 13 }: 4 14 buildPythonPackage rec { 5 15 pname = "Twisted"; ··· 12 22 }; 13 23 14 24 propagatedBuildInputs = [ zope_interface incremental automat constantly hyperlink ]; 25 + 26 + passthru.extras.tls = [ pyopenssl service-identity idna ]; 15 27 16 28 # Patch t.p._inotify to point to libc. Without this, 17 29 # twisted.python.runtime.platform.supportsINotify() == False
+39
pkgs/development/python-modules/txtorcon/default.nix
··· 1 + {lib, buildPythonPackage, fetchPypi, isPy3k, incremental, ipaddress, twisted 2 + , automat, zope_interface, idna, pyopenssl, service-identity, pytest, mock, lsof 3 + , GeoIP}: 4 + 5 + buildPythonPackage rec { 6 + name = "${pname}-${version}"; 7 + pname = "txtorcon"; 8 + version = "0.19.3"; 9 + 10 + checkInputs = [ pytest mock lsof GeoIP ]; 11 + propagatedBuildInputs = [ 12 + incremental twisted automat zope_interface 13 + # extra dependencies required by twisted[tls] 14 + idna pyopenssl service-identity 15 + ] ++ lib.optionals (!isPy3k) [ ipaddress ]; 16 + 17 + src = fetchPypi { 18 + inherit pname version; 19 + sha256 = "1za4qag4g2lbw695v4ssxqc2aspdyknnbn2diylwg8q9g5k9cczp"; 20 + }; 21 + 22 + # ipaddress isn't required for Python 3 although it's in requirements.txt. 23 + # Because ipaddress doesn't install on Python 3, remove the requirement so the 24 + # installation of this package doesn't fail on Python 3. 25 + postPatch = "" + lib.optionalString isPy3k '' 26 + substituteInPlace requirements.txt --replace "ipaddress>=1.0.16" "" 27 + ''; 28 + 29 + checkPhase = '' 30 + pytest . 31 + ''; 32 + 33 + meta = { 34 + description = "Twisted-based Tor controller client, with state-tracking and configuration abstractions"; 35 + homepage = https://github.com/meejah/txtorcon; 36 + maintainers = with lib.maintainers; [ jluttine ]; 37 + license = lib.licenses.mit; 38 + }; 39 + }
+24
pkgs/development/python-modules/tzlocal/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi 2 + , tzlocal, pytz }: 3 + 4 + buildPythonPackage rec { 5 + name = "${pname}-${version}"; 6 + pname = "tzlocal"; 7 + version = "1.4"; 8 + 9 + propagatedBuildInputs = [ pytz ]; 10 + 11 + src = fetchPypi { 12 + inherit pname version; 13 + sha256 = "0n9hw4kqblyc0avzwi26rqmvyk9impb608rvy11qifmigy7r18h5"; 14 + }; 15 + 16 + # test fail (timezone test fail) 17 + doCheck = false; 18 + 19 + meta = with stdenv.lib; { 20 + description = "Tzinfo object for the local timezone"; 21 + homepage = https://github.com/regebro/tzlocal; 22 + license = licenses.cddl; 23 + }; 24 + }
+32
pkgs/development/python-modules/urllib3/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi 2 + , coverage, tornado, mock, nose, psutil, pysocks }: 3 + 4 + buildPythonPackage rec { 5 + pname = "urllib3"; 6 + version = "1.22"; 7 + name = "${pname}-${version}"; 8 + 9 + src = fetchPypi { 10 + inherit pname version; 11 + sha256 = "0kyvc9zdlxr5r96bng5rhm9a6sfqidrbvvkz64s76qs5267dli6c"; 12 + }; 13 + 14 + NOSE_EXCLUDE = stdenv.lib.concatStringsSep "," [ 15 + "test_headers" "test_headerdict" "test_can_validate_ip_san" "test_delayed_body_read_timeout" 16 + "test_timeout_errors_cause_retries" "test_select_multiple_interrupts_with_event" 17 + ]; 18 + 19 + checkPhase = '' 20 + nosetests -v --cover-min-percentage 1 21 + ''; 22 + 23 + doCheck = false; 24 + 25 + buildInputs = [ coverage tornado mock nose psutil pysocks ]; 26 + 27 + meta = with stdenv.lib; { 28 + description = "A Python library for Dropbox's HTTP-based Core and Datastore APIs"; 29 + homepage = https://www.dropbox.com/developers/core/docs; 30 + license = licenses.mit; 31 + }; 32 + }
+18
pkgs/development/python-modules/vcversioner/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi }: 2 + 3 + buildPythonPackage rec { 4 + name = "${pname}-${version}"; 5 + pname = "vcversioner"; 6 + version = "2.16.0.0"; 7 + 8 + src = fetchPypi { 9 + inherit pname version; 10 + sha256 = "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"; 11 + }; 12 + 13 + meta = with stdenv.lib; { 14 + description = "take version numbers from version control"; 15 + homepage = https://github.com/habnabit/vcversioner; 16 + licenses = licenses.isc; 17 + }; 18 + }
+25
pkgs/development/python-modules/werkzeug/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi 2 + , itsdangerous 3 + , pytest, requests, glibcLocales }: 4 + 5 + buildPythonPackage rec { 6 + name = "${pname}-${version}"; 7 + pname = "Werkzeug"; 8 + version = "0.12.2"; 9 + 10 + src = fetchPypi { 11 + inherit pname version; 12 + sha256 = "09mv4cya3lywkn4mi3qrqmjgwiw99kdk03dk912j8da6ny3pnflh"; 13 + }; 14 + 15 + LC_ALL = "en_US.UTF-8"; 16 + 17 + propagatedBuildInputs = [ itsdangerous ]; 18 + buildInputs = [ pytest requests glibcLocales ]; 19 + 20 + meta = with stdenv.lib; { 21 + homepage = http://werkzeug.pocoo.org/; 22 + description = "A WSGI utility library for Python"; 23 + license = licenses.bsd3; 24 + }; 25 + }
+2 -2
pkgs/development/python-modules/zetup/default.nix
··· 5 5 buildPythonPackage rec { 6 6 name = "${pname}-${version}"; 7 7 pname = "zetup"; 8 - version = "0.2.34"; 8 + version = "0.2.42"; 9 9 10 10 src = fetchPypi { 11 11 inherit pname version; 12 - sha256 = "0k4lm51b5qjy7yxy3n5z8vc5hlvjcsfsvwjgqzkr0pisysar1kpf"; 12 + sha256 = "6c9e25249f3014ed2162398772ccf1a5e8a4e9e66c74e3c7f6683945a6a3d84c"; 13 13 }; 14 14 15 15 checkPhase = ''
+2 -2
pkgs/development/python-modules/zxcvbn-python/default.nix
··· 5 5 6 6 buildPythonPackage rec { 7 7 pname = "zxcvbn-python"; 8 - version = "4.4.15"; 8 + version = "4.4.16"; 9 9 10 10 name = "${pname}-${version}"; 11 11 12 12 src = fetchPypi { 13 13 inherit pname version; 14 - sha256 = "ef982a382518d217d353a42093aa8bb8608a50bc2df559c08885bba166782cd0"; 14 + sha256 = "63cc481bfb8950c43d4a87926be22cf8c4bb281ef7f818a8ef2d30b55a97c3e0"; 15 15 }; 16 16 17 17 # No tests in archive
+5 -7
pkgs/tools/admin/ansible/2.1.nix
··· 7 7 with pythonPackages; 8 8 9 9 let 10 - jinja = jinja2.override rec { 11 - pname = "Jinja2"; 10 + jinja = jinja2.overridePythonAttrs (old: rec { 12 11 version = "2.8.1"; 13 - name = "${pname}-${version}"; 14 - src = fetchurl { 15 - url = "mirror://pypi/J/Jinja2/${name}.tar.gz"; 12 + name = "${old.pname}-${version}"; 13 + src = old.src.override { 14 + inherit version; 16 15 sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891"; 17 16 }; 18 - }; 19 - 17 + }); 20 18 in buildPythonPackage rec { 21 19 pname = "ansible"; 22 20 version = "2.1.4.0";
+4 -5
pkgs/tools/admin/ansible/2.2.nix
··· 9 9 let 10 10 # Shouldn't be needed anymore in next version 11 11 # https://github.com/NixOS/nixpkgs/pull/22345#commitcomment-20718521 12 - jinja = (jinja2.override rec { 13 - pname = "Jinja2"; 12 + jinja = jinja2.overridePythonAttrs (old: rec { 14 13 version = "2.8.1"; 15 - name = "${pname}-${version}"; 16 - src = fetchurl { 17 - url = "mirror://pypi/J/Jinja2/${name}.tar.gz"; 14 + name = "${old.pname}-${version}"; 15 + src = old.src.override { 16 + inherit version; 18 17 sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891"; 19 18 }; 20 19 });
+72 -634
pkgs/top-level/python-packages.nix
··· 315 315 316 316 aiofiles = callPackage ../development/python-modules/aiofiles { }; 317 317 318 - aiohttp = 319 - let yarl_0_9_8 = self.yarl.overrideAttrs (old: rec { 320 - pname = "yarl"; 321 - version = "0.9.8"; 322 - name = "${pname}-${version}"; 323 - src = pkgs.fetchurl { 324 - url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; 325 - sha256 = "1v2dsmr7bqp0yx51pwhbxyvzza8m2f88prsnbd926mi6ah38p0d7"; 326 - }; 327 - }); 328 - in buildPythonPackage rec { 329 - name = "aiohttp-${version}"; 330 - version = "1.3.5"; 331 - 332 - src = pkgs.fetchurl { 333 - url = "mirror://pypi/a/aiohttp/${name}.tar.gz"; 334 - sha256 = "0hpqdiaifgyfqmxkyzwypwvrnvz5rqzgzylzhihfidc5ldfs856d"; 335 - }; 336 - 337 - disabled = pythonOlder "3.4"; 338 - 339 - doCheck = false; # Too many tests fail. 340 - 341 - buildInputs = with self; [ pytest gunicorn pytest-raisesregexp ]; 342 - propagatedBuildInputs = with self; [ async-timeout chardet multidict yarl_0_9_8 ]; 343 - 344 - meta = { 345 - description = "Http client/server for asyncio"; 346 - license = with licenses; [ asl20 ]; 347 - homepage = https://github.com/KeepSafe/aiohttp/; 348 - }; 349 - }; 318 + aiohttp = callPackage ../development/python-modules/aiohttp { }; 350 319 351 320 aiohttp-cors = buildPythonPackage rec { 352 321 name = "${pname}-${version}"; ··· 682 651 }; 683 652 }); 684 653 685 - attrs = buildPythonPackage (rec { 686 - name = "attrs-${version}"; 687 - version = "16.2.0"; 688 - src = pkgs.fetchurl { 689 - url = "mirror://pypi/a/attrs/${name}.tar.gz"; 690 - sha256 = "136f2ec0f94ec77ff2990830feee965d608cab1e8922370e3abdded383d52001"; 691 - }; 692 - 693 - # macOS needs clang for testing 694 - buildInputs = with self; [ pytest hypothesis zope_interface 695 - pympler coverage ] 696 - ++ optionals (stdenv.isDarwin) [ pkgs.clang ]; 697 - 698 - checkPhase = '' 699 - py.test 700 - ''; 701 - 702 - meta = { 703 - description = "Python attributes without boilerplate"; 704 - homepage = https://github.com/hynek/attrs; 705 - license = licenses.mit; 706 - }; 707 - }); 654 + attrs = callPackage ../development/python-modules/attrs { }; 708 655 709 656 audioread = callPackage ../development/python-modules/audioread { }; 710 657 ··· 1263 1210 }; 1264 1211 }; 1265 1212 1213 + backports_unittest-mock = callPackage ../development/python-modules/backports_unittest-mock {}; 1214 + 1266 1215 babelfish = buildPythonPackage rec { 1267 1216 version = "0.5.5"; 1268 1217 name = "babelfish-${version}"; ··· 1361 1310 }; 1362 1311 }); 1363 1312 1364 - beautifulsoup4 = buildPythonPackage (rec { 1365 - name = "beautifulsoup4-4.5.3"; 1366 - 1367 - src = pkgs.fetchurl { 1368 - url = "mirror://pypi/b/beautifulsoup4/${name}.tar.gz"; 1369 - sha256 = "0glaw1vyxnbp03fni7h5496n6iib0n5iim4gax1n0ngscs9s075j"; 1370 - }; 1371 - 1372 - buildInputs = [ self.nose ]; 1373 - checkPhase = '' 1374 - nosetests build/ 1375 - ''; 1376 - 1377 - meta = { 1378 - homepage = http://crummy.com/software/BeautifulSoup/bs4/; 1379 - description = "HTML and XML parser"; 1380 - license = licenses.mit; 1381 - maintainers = with maintainers; [ domenkozar ]; 1382 - }; 1383 - }); 1313 + beautifulsoup4 = callPackage ../development/python-modules/beautifulsoup4 { }; 1384 1314 1385 1315 beaker = buildPythonPackage rec { 1386 1316 name = "Beaker-${version}"; ··· 1660 1590 1661 1591 1662 1592 channels = callPackage ../development/python-modules/channels {}; 1593 + 1594 + cheroot = callPackage ../development/python-modules/cheroot {}; 1663 1595 1664 1596 circus = buildPythonPackage rec { 1665 1597 name = "circus-0.11.1"; ··· 2178 2110 }; 2179 2111 }; 2180 2112 2181 - bokeh = buildPythonPackage rec { 2182 - name = "bokeh-${version}"; 2183 - version = "0.12.3"; 2113 + bkcharts = callPackage ../development/python-modules/bkcharts { }; 2184 2114 2185 - src = pkgs.fetchurl { 2186 - url = "mirror://pypi/b/bokeh/${name}.tar.gz"; 2187 - sha256 = "e138941b62f59bc48bc5b8d249e90c03fed31c1d5abe47ab2ce9e4c83202f73c"; 2188 - }; 2189 - 2190 - disabled = isPyPy; 2191 - 2192 - # Some test that uses tornado fails 2193 - doCheck = false; 2194 - 2195 - buildInputs = with self; [ mock pytest ]; 2196 - 2197 - propagatedBuildInputs = with self; [ 2198 - flask 2199 - jinja2 2200 - markupsafe 2201 - werkzeug 2202 - itsdangerous 2203 - dateutil 2204 - requests 2205 - six 2206 - pygments 2207 - pystache 2208 - markdown 2209 - pyyaml 2210 - pyzmq 2211 - tornado 2212 - colorama 2213 - ] 2214 - ++ optionals ( !isPy3k ) [ futures ] 2215 - ++ optionals ( isPy26 ) [ argparse ] 2216 - ++ optionals ( !isPy3k && !isPyPy ) [ websocket_client ] 2217 - ++ optionals ( !isPyPy ) [ numpy pandas greenlet ]; 2218 - 2219 - checkPhase = '' 2220 - ${python.interpreter} -m unittest discover -s bokeh/tests 2221 - ''; 2222 - 2223 - meta = { 2224 - description = "Statistical and novel interactive HTML plots for Python"; 2225 - homepage = "http://github.com/bokeh/bokeh"; 2226 - license = licenses.bsd3; 2227 - }; 2228 - }; 2115 + bokeh = callPackage ../development/python-modules/bokeh { }; 2229 2116 2230 2117 boto = buildPythonPackage rec { 2231 2118 name = "boto-${version}"; ··· 2793 2680 }; 2794 2681 }; 2795 2682 2796 - 2797 - cherrypy = buildPythonPackage (rec { 2798 - name = "cherrypy-${version}"; 2799 - version = "8.7.0"; 2800 - 2801 - src = pkgs.fetchurl { 2802 - url = "mirror://pypi/C/CherryPy/CherryPy-${version}.tar.gz"; 2803 - sha256 = "cbf418bf46458a67eb841944f2d414c23bf59d090baf2a28704bd67243e6a79f"; 2804 - }; 2805 - 2806 - # wsgiserver.ssl_pyopenssl is broken on py3k. 2807 - doCheck = !isPy3k; 2808 - buildInputs = with self; [ pytest setuptools_scm pytestrunner ]; 2809 - propagatedBuildInputs = with self; [ six ]; 2810 - 2811 - meta = { 2812 - homepage = "http://www.cherrypy.org"; 2813 - description = "A pythonic, object-oriented HTTP framework"; 2814 - }; 2815 - }); 2816 - 2683 + cherrypy = callPackage ../development/python-modules/cherrypy {}; 2817 2684 2818 2685 cjson = buildPythonPackage rec { 2819 2686 name = "python-cjson-${version}"; ··· 3319 3186 }; 3320 3187 3321 3188 3322 - contextlib2 = buildPythonPackage rec { 3323 - name = "contextlib2-${version}"; 3324 - version = "0.5.3"; 3325 - 3326 - src = pkgs.fetchurl rec { 3327 - url = "mirror://pypi/c/contextlib2/${name}.tar.gz"; 3328 - sha256 = "01k2921labkbn28kw60jmqzvr4nxzfnx4vcsyjb3rir177qh1r9h"; 3329 - }; 3330 - }; 3189 + contextlib2 = callPackage ../development/python-modules/contextlib2 { }; 3331 3190 3332 3191 cookiecutter = buildPythonPackage rec { 3333 3192 version = "1.4.0"; ··· 3372 3231 3373 3232 coveralls = callPackage ../development/python-modules/coveralls { }; 3374 3233 3375 - coverage = buildPythonPackage rec { 3376 - name = "coverage-4.0.1"; 3377 - 3378 - src = pkgs.fetchurl { 3379 - url = "mirror://pypi/c/coverage/${name}.tar.gz"; 3380 - sha256 = "0nrd817pzjw1haaz6gambgwf4jdjnh9kyxkgj6l8qgl6hdxga45w"; 3381 - }; 3382 - 3383 - # TypeError: __call__() takes 1 positional argument but 2 were given 3384 - doCheck = !isPy3k; 3385 - buildInputs = with self; [ mock ]; 3386 - 3387 - meta = { 3388 - description = "Code coverage measurement for python"; 3389 - homepage = http://nedbatchelder.com/code/coverage/; 3390 - license = licenses.bsd3; 3391 - }; 3392 - }; 3234 + coverage = callPackage ../development/python-modules/coverage { }; 3393 3235 3394 3236 covCore = buildPythonPackage rec { 3395 3237 name = "cov-core-1.15.0"; ··· 3490 3332 cryptography = buildPythonPackage rec { 3491 3333 # also bump cryptography_vectors 3492 3334 pname = "cryptography"; 3493 - name = "${pname}${version}"; 3494 - version = "1.8.1"; 3335 + name = "${pname}-${version}"; 3336 + version = "2.0.3"; 3495 3337 3496 3338 src = fetchPypi { 3497 3339 inherit pname version; 3498 - sha256 = "323524312bb467565ebca7e50c8ae5e9674e544951d28a2904a50012a8828190"; 3340 + sha256 = "d04bb2425086c3fe86f7bc48915290b13e798497839fbb18ab7f6dffcf98cc3a"; 3499 3341 }; 3500 3342 3501 3343 buildInputs = [ pkgs.openssl self.cryptography_vectors ] ··· 3533 3375 cryptography_vectors = buildPythonPackage rec { 3534 3376 # also bump cryptography 3535 3377 pname = "cryptography_vectors"; 3536 - name = "${pname}${version}"; 3537 - version = "1.8.1"; 3378 + version = self.cryptography.version; 3379 + name = "${pname}-${version}"; 3538 3380 3539 3381 src = fetchPypi { 3540 3382 inherit pname version; 3541 - sha256 = "2fd61facea08800ca98ac923f6d02f48a7ae6648025b29cdeb51987c1532add6"; 3383 + sha256 = "beb831aa73663a224f4d7520483ed02da544533bb03b26ec07a5f9a0dd0941e1"; 3542 3384 }; 3543 3385 3544 3386 # No tests included ··· 4275 4117 }; 4276 4118 }; 4277 4119 4120 + pytest-warnings = callPackage ../development/python-modules/pytest-warnings { }; 4121 + 4278 4122 pytestpep8 = buildPythonPackage rec { 4279 4123 name = "pytest-pep8"; 4280 4124 src = pkgs.fetchurl { ··· 4484 4328 license = licenses.publicDomain; 4485 4329 }; 4486 4330 }; 4331 + 4332 + pytest-sugar = callPackage ../development/python-modules/pytest-sugar { }; 4487 4333 4488 4334 tinycss = buildPythonPackage rec { 4489 4335 name = "tinycss-${version}"; ··· 5108 4954 }; 5109 4955 5110 4956 5111 - dill = buildPythonPackage rec { 5112 - name = "dill-${version}"; 5113 - version = "0.2.6"; 5114 - 5115 - src = pkgs.fetchurl { 5116 - url = "mirror://pypi/d/dill/${name}.zip"; 5117 - sha256 = "6c1ccca68be483fa8c66e85a89ffc850206c26373aa77a97b83d8d0994e7f1fd"; 5118 - }; 5119 - 5120 - # TypeError: don't know how to make test from: {'byref': False, 'recurse': False, 'protocol': 3, 'fmode': 0} 5121 - doCheck = false; 5122 - 5123 - meta = { 5124 - description = "Serialize all of python (almost)"; 5125 - homepage = http://www.cacr.caltech.edu/~mmckerns/dill.htm; 5126 - license = licenses.bsd3; 5127 - }; 5128 - }; 4957 + dill = callPackage ../development/python-modules/dill { }; 5129 4958 5130 4959 discogs_client = buildPythonPackage rec { 5131 4960 name = "discogs-client-2.0.2"; ··· 5355 5184 }; 5356 5185 }; 5357 5186 5358 - urllib3 = let 5359 - disabled_tests = [ 5360 - "test_headers" "test_headerdict" "test_can_validate_ip_san" "test_delayed_body_read_timeout" 5361 - "test_timeout_errors_cause_retries" "test_select_multiple_interrupts_with_event" 5362 - ]; 5363 - in buildPythonPackage rec { 5364 - pname = "urllib3"; 5365 - version = "1.20"; 5366 - name = "${pname}-${version}"; 5367 - 5368 - src = fetchPypi { 5369 - inherit pname version; 5370 - sha256 = "0bx76if7shzlyykmaj4fhjkir5bswc4fdx5r4q0lrn3q51p2pvwp"; 5371 - }; 5372 - 5373 - NOSE_EXCLUDE=concatStringsSep "," disabled_tests; 5374 - 5375 - checkPhase = '' 5376 - nosetests -v --cover-min-percentage 1 5377 - ''; 5378 - 5379 - doCheck = false; 5380 - 5381 - buildInputs = with self; [ coverage tornado mock nose psutil pysocks ]; 5382 - 5383 - meta = { 5384 - description = "A Python library for Dropbox's HTTP-based Core and Datastore APIs"; 5385 - homepage = https://www.dropbox.com/developers/core/docs; 5386 - license = licenses.mit; 5387 - }; 5388 - }; 5389 - 5187 + urllib3 = callPackage ../development/python-modules/urllib3 {}; 5390 5188 5391 5189 dropbox = buildPythonPackage rec { 5392 5190 name = "dropbox-${version}"; ··· 5540 5338 }; 5541 5339 }); 5542 5340 5543 - entrypoints = buildPythonPackage rec { 5544 - pname = "entrypoints"; 5545 - version = "0.2.2"; 5546 - name = "${pname}-${version}"; 5547 - format = "wheel"; 5548 - 5549 - src = fetchPypi { 5550 - inherit pname version format; 5551 - sha256 = "0a0685962ee5ac303f470acbb659f0f97aef5b9deb6b85d059691c706ef6e45e"; 5552 - }; 5553 - 5554 - propagatedBuildInputs = with self; [ configparser ]; 5555 - }; 5341 + entrypoints = callPackage ../development/python-modules/entrypoints { }; 5556 5342 5557 5343 enzyme = callPackage ../development/python-modules/enzyme {}; 5558 5344 ··· 5867 5653 propagatedBuildInputs = with self; [ rpkg offtrac urlgrabber fedora_cert ]; 5868 5654 }); 5869 5655 5870 - flit = buildPythonPackage rec { 5871 - pname = "flit"; 5872 - version = "0.10"; 5873 - name = "${pname}-${version}"; 5874 - 5875 - format = "wheel"; 5876 - 5877 - src = pkgs.fetchurl { 5878 - url = https://files.pythonhosted.org/packages/24/98/50a090112a04d9e29155c31a222637668b0a4dd778fefcd3132adc50e877/flit-0.10-py3-none-any.whl; 5879 - sha256 = "4566b2e1807abeb1fd7bfaa9b444447556f1720518edfb134b56a6a1272b0428"; 5880 - }; 5881 - 5882 - disabled = !isPy3k; 5883 - propagatedBuildInputs = with self; [ docutils requests requests_download zipfile36]; 5884 - 5885 - meta = { 5886 - description = "A simple packaging tool for simple packages"; 5887 - homepage = https://github.com/takluyver/flit; 5888 - license = licenses.bsd3; 5889 - maintainer = maintainers.fridh; 5890 - }; 5891 - }; 5656 + flit = callPackage ../development/python-modules/flit { }; 5892 5657 5893 5658 Flootty = buildPythonPackage rec { 5894 5659 name = "Flootty-3.2.0"; ··· 6095 5860 broken = true; 6096 5861 }; 6097 5862 }; 5863 + 5864 + GeoIP = callPackage ../development/python-modules/GeoIP { }; 6098 5865 6099 5866 gmpy = buildPythonPackage rec { 6100 5867 name = "gmpy-1.17"; ··· 8755 8522 }; 8756 8523 }; 8757 8524 8758 - chardet = buildPythonPackage rec { 8759 - name = "chardet-2.3.0"; 8760 - 8761 - src = pkgs.fetchurl { 8762 - url = "mirror://pypi/c/chardet/${name}.tar.gz"; 8763 - sha256 = "e53e38b3a4afe6d1132de62b7400a4ac363452dc5dfcf8d88e8e0cce663c68aa"; 8764 - }; 8765 - 8766 - meta = { 8767 - homepage = https://github.com/chardet/chardet; 8768 - description = "Universal encoding detector"; 8769 - license = licenses.lgpl2; 8770 - maintainers = with maintainers; [ domenkozar ]; 8771 - }; 8772 - }; 8525 + chardet = callPackage ../development/python-modules/chardet { }; 8773 8526 8774 8527 django = self.django_1_11; 8775 8528 ··· 9640 9393 }; 9641 9394 }; 9642 9395 9643 - flask = buildPythonPackage { 9644 - name = "flask-0.12"; 9645 - 9646 - src = pkgs.fetchurl { 9647 - url = "mirror://pypi/F/Flask/Flask-0.12.tar.gz"; 9648 - sha256 = "12yasybryp33rdchsqgckf15zj4pjfam7ly5spmn2sijpv6h7s4k"; 9649 - }; 9650 - 9651 - propagatedBuildInputs = with self; [ itsdangerous click werkzeug jinja2 ]; 9652 - 9653 - meta = { 9654 - homepage = http://flask.pocoo.org/; 9655 - description = "A microframework based on Werkzeug, Jinja 2, and good intentions"; 9656 - license = licenses.bsd3; 9657 - }; 9658 - }; 9396 + flask = callPackage ../development/python-modules/flask { }; 9659 9397 9660 9398 flask_assets = buildPythonPackage rec { 9661 9399 name = "Flask-Assets-${version}"; ··· 9693 9431 }; 9694 9432 }; 9695 9433 9696 - flask-compress = buildPythonPackage rec { 9697 - name = "Flask-Compress-${version}"; 9698 - version = "1.3.2"; 9699 - 9700 - src = pkgs.fetchurl { 9701 - url = "mirror://pypi/F/Flask-Compress/${name}.tar.gz"; 9702 - sha256 = "4fbb53e7f6ce8b1458a2c3d7a528564912f2641ab2f9f43819fc96ed7f770734"; 9703 - }; 9704 - 9705 - propagatedBuildInputs = with self; [ flask ]; 9706 - 9707 - meta = { 9708 - description = "Compress responses in your Flask app with gzip"; 9709 - homepage = "https://libwilliam.github.io/flask-compress/"; 9710 - license = licenses.mit; 9711 - }; 9712 - }; 9713 - 9714 - flask-cors = buildPythonPackage rec { 9715 - name = "Flask-Cors-${version}"; 9716 - version = "2.1.2"; 9717 - 9718 - src = pkgs.fetchurl { 9719 - url = "mirror://pypi/F/Flask-Cors/${name}.tar.gz"; 9720 - sha256 = "0fd618a4f88ykqx4x55viz47cm9rl214q1b45a0b4mz5vhxffqpj"; 9721 - }; 9722 - 9723 - buildInputs = with self; [ nose ]; 9724 - propagatedBuildInputs = with self; [ flask six ]; 9434 + flask-compress = callPackage ../development/python-modules/flask-compress { }; 9725 9435 9726 - meta = { 9727 - description = "A Flask extension adding a decorator for CORS support"; 9728 - homepage = https://github.com/corydolphin/flask-cors; 9729 - license = with licenses; [ mit ]; 9730 - }; 9731 - }; 9436 + flask-cors = callPackage ../development/python-modules/flask-cors { }; 9732 9437 9733 9438 flask_elastic = callPackage ../development/python-modules/flask-elastic.nix { }; 9734 9439 ··· 9762 9467 9763 9468 flask-pymongo = callPackage ../development/python-modules/Flask-PyMongo { }; 9764 9469 9765 - flask-restful = buildPythonPackage rec { 9766 - name = "Flask-RESTful-${version}"; 9767 - version = "0.3.5"; 9768 - 9769 - src = pkgs.fetchurl { 9770 - url = "mirror://pypi/F/Flask-RESTful/${name}.tar.gz"; 9771 - sha256 = "cce4aeff959b571136b5af098bebe7d3deeca7eb1411c4e722ff2c5356ab4c42"; 9772 - }; 9773 - 9774 - # TypeError: Only byte strings can be passed to C code 9775 - patchPhase = if isPy3k then '' 9776 - rm tests/test_crypto.py tests/test_paging.py 9777 - '' else null; 9778 - buildInputs = with self; [ nose mock blinker ]; 9779 - propagatedBuildInputs = with self; [ flask six pytz aniso8601 pycrypto ]; 9780 - PYTHON_EGG_CACHE = "`pwd`/.egg-cache"; 9781 - 9782 - meta = { 9783 - homepage = "http://flask-restful.readthedocs.io/"; 9784 - description = "REST API building blocks for Flask"; 9785 - license = licenses.bsd3; 9786 - }; 9787 - }; 9470 + flask-restful = callPackage ../development/python-modules/flask-restful { }; 9788 9471 9789 - flask-restplus = callPackage ../development/python-modules/flask-restplus/default.nix { }; 9790 - # Exactly 0.8.6 is required by flexget 9791 - flask-restplus_0_8 = callPackage ../development/python-modules/flask-restplus/0.8.nix { }; 9472 + flask-restplus = callPackage ../development/python-modules/flask-restplus { }; 9792 9473 9793 9474 flask_script = buildPythonPackage rec { 9794 9475 name = "Flask-Script-${version}"; ··· 9965 9646 }; 9966 9647 }; 9967 9648 9968 - jsonschema = buildPythonPackage (rec { 9969 - version = "2.5.1"; 9970 - name = "jsonschema-${version}"; 9649 + jsonschema = callPackage ../development/python-modules/jsonschema { }; 9971 9650 9972 - src = pkgs.fetchurl { 9973 - url = "mirror://pypi/j/jsonschema/jsonschema-${version}.tar.gz"; 9974 - sha256 = "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn"; 9975 - }; 9976 - 9977 - buildInputs = with self; [ nose mock vcversioner ]; 9978 - propagatedBuildInputs = with self; [ functools32 ]; 9979 - 9980 - patchPhase = '' 9981 - substituteInPlace jsonschema/tests/test_jsonschema_test_suite.py --replace "python" "${python}/bin/${python.executable}" 9982 - ''; 9983 - 9984 - checkPhase = '' 9985 - nosetests 9986 - ''; 9987 - 9988 - meta = { 9989 - homepage = https://github.com/Julian/jsonschema; 9990 - description = "An implementation of JSON Schema validation for Python"; 9991 - license = licenses.mit; 9992 - maintainers = with maintainers; [ domenkozar ]; 9993 - }; 9994 - }); 9995 - 9996 - vcversioner = buildPythonPackage rec { 9997 - name = "vcversioner-${version}"; 9998 - version = "2.14.0.0"; 9999 - 10000 - src = pkgs.fetchurl { 10001 - url = "mirror://pypi/v/vcversioner/vcversioner-${version}.tar.gz"; 10002 - sha256 = "11ivq1bm7v0yb4nsfbv9m7g7lyjn112gbvpjnjz8nv1fx633dm5c"; 10003 - }; 10004 - 10005 - meta = with stdenv.lib; { 10006 - homepage = "https://github.com/habnabit/vcversioner"; 10007 - }; 10008 - }; 9651 + vcversioner = callPackage ../development/python-modules/vcversioner { }; 10009 9652 10010 9653 falcon = buildPythonPackage (rec { 10011 9654 name = "falcon-1.0.0"; ··· 10750 10393 10751 10394 guessit = callPackage ../development/python-modules/guessit { }; 10752 10395 10396 + # used by flexget 10397 + guessit_2_0 = callPackage ../development/python-modules/guessit/2.0.nix { }; 10398 + 10753 10399 rebulk = callPackage ../development/python-modules/rebulk { }; 10754 10400 10755 10401 gunicorn = callPackage ../development/python-modules/gunicorn.nix { }; ··· 11449 11095 }; 11450 11096 }; 11451 11097 11452 - jinja2 = buildPythonPackage rec { 11453 - pname = "Jinja2"; 11454 - version = "2.9.5"; 11455 - name = "${pname}-${version}"; 11456 - 11457 - src = pkgs.fetchurl { 11458 - url = "mirror://pypi/J/Jinja2/${name}.tar.gz"; 11459 - sha256 = "702a24d992f856fa8d5a7a36db6128198d0c21e1da34448ca236c42e92384825"; 11460 - }; 11461 - 11462 - propagatedBuildInputs = with self; [ markupsafe ]; 11463 - 11464 - # No tests included 11465 - doCheck = false; 11466 - 11467 - meta = { 11468 - homepage = http://jinja.pocoo.org/; 11469 - description = "Stand-alone template engine"; 11470 - license = licenses.bsd3; 11471 - longDescription = '' 11472 - Jinja2 is a template engine written in pure Python. It provides a 11473 - Django inspired non-XML syntax but supports inline expressions and 11474 - an optional sandboxed environment. 11475 - ''; 11476 - platforms = platforms.all; 11477 - maintainers = with maintainers; [ pierron garbas sjourdois ]; 11478 - }; 11479 - }; 11098 + jinja2 = callPackage ../development/python-modules/jinja2 { }; 11480 11099 11481 11100 jinja2_time = buildPythonPackage rec { 11482 11101 version = "0.2.0"; ··· 14484 14103 doCheck = false; 14485 14104 }; 14486 14105 14487 - openpyxl = buildPythonPackage rec { 14488 - version = "2.3.5"; 14489 - name = "openpyxl-${version}"; 14490 - 14491 - src = pkgs.fetchurl { 14492 - url = "mirror://pypi/o/openpyxl/${name}.tar.gz"; 14493 - sha256 = "0qj7d8l1qc6cjwk1ps01dyh53b3p2k2k7hwmj98y2257jj5mf1s3"; 14494 - }; 14495 - 14496 - buildInputs = with self; [ pytest ]; 14497 - propagatedBuildInputs = with self; [ jdcal et_xmlfile lxml ]; 14498 - 14499 - # Tests are not included in archive. 14500 - # https://bitbucket.org/openpyxl/openpyxl/issues/610 14501 - doCheck = false; 14502 - 14503 - meta = { 14504 - description = "A Python library to read/write Excel 2007 xlsx/xlsm files"; 14505 - homepage = https://openpyxl.readthedocs.org; 14506 - license = licenses.mit; 14507 - maintainers = with maintainers; [ lihop sjourdois ]; 14508 - platforms = platforms.all; 14509 - }; 14510 - }; 14511 - 14512 - # optfunc = buildPythonPackage ( rec { 14513 - # name = "optfunc-git"; 14514 - # 14515 - # src = pkgs.fetchgit { 14516 - # url = "https://github.com/simonw/optfunc.git"; 14517 - # rev = "e3fa034a545ed94ac5a039cf5b170c7d0ee21b7b"; 14518 - # }; 14519 - # 14520 - # installCommand = '' 14521 - # dest=$(toPythonPath $out)/optfunc 14522 - # mkdir -p $dest 14523 - # cp * $dest/ 14524 - # ''; 14525 - # 14526 - # doCheck = false; 14527 - # 14528 - # meta = { 14529 - # description = "A new experimental interface to optparse which works by introspecting a function definition"; 14530 - # homepage = "http://simonwillison.net/2009/May/28/optfunc/"; 14531 - # }; 14532 - # }); 14106 + openpyxl = callPackage ../development/python-modules/openpyxl { }; 14533 14107 14534 14108 ordereddict = buildPythonPackage rec { 14535 14109 name = "ordereddict-${version}"; ··· 15841 15415 sed -i 's@python@${python.interpreter}@' .testr.conf 15842 15416 ''; 15843 15417 15844 - buildInputs = with self; [ pbr Babel six wrapt testtools testscenarios 15845 - testrepository subunit coverage oslotest ]; 15418 + buildInputs = with self; [ pbr ]; 15419 + propagatedBuildInputs = with self; [ wrapt Babel six doc8 ]; 15420 + checkInputs = with self; [ pbr Babel six wrapt testtools testscenarios 15421 + testrepository subunit coverage oslotest ]; 15422 + doCheck = false; # oslo is broken 15846 15423 }; 15424 + 15425 + doc8 = callPackage ../development/python-modules/doc8 { }; 15847 15426 15848 15427 wrapt = buildPythonPackage rec { 15849 15428 name = "wrapt-${version}"; ··· 16751 16330 }; 16752 16331 }; 16753 16332 16333 + portend = callPackage ../development/python-modules/portend { }; 16334 + 16754 16335 powerline = callPackage ../development/python-modules/powerline { }; 16755 16336 16756 16337 pox = buildPythonPackage rec { ··· 16837 16418 }; 16838 16419 16839 16420 16840 - prompt_toolkit = buildPythonPackage rec { 16841 - name = "prompt_toolkit-${version}"; 16842 - version = "1.0.14"; 16421 + prompt_toolkit = callPackage ../development/python-modules/prompt_toolkit { }; 16843 16422 16844 - src = pkgs.fetchurl { 16845 - sha256 = "cc66413b1b4b17021675d9f2d15d57e640b06ddfd99bb724c73484126d22622f"; 16846 - url = "mirror://pypi/p/prompt_toolkit/${name}.tar.gz"; 16847 - }; 16848 - checkPhase = '' 16849 - rm prompt_toolkit/win32_types.py 16850 - py.test -k 'not test_pathcompleter_can_expanduser' 16851 - ''; 16852 - 16853 - buildInputs = with self; [ pytest ]; 16854 - propagatedBuildInputs = with self; [ docopt six wcwidth pygments ]; 16855 - 16856 - meta = { 16857 - description = "Python library for building powerful interactive command lines"; 16858 - longDescription = '' 16859 - prompt_toolkit could be a replacement for readline, but it can be 16860 - much more than that. It is cross-platform, everything that you build 16861 - with it should run fine on both Unix and Windows systems. Also ships 16862 - with a nice interactive Python shell (called ptpython) built on top. 16863 - ''; 16864 - homepage = https://github.com/jonathanslenders/python-prompt-toolkit; 16865 - license = licenses.bsd3; 16866 - maintainers = with maintainers; [ nckx ]; 16867 - }; 16868 - }; 16869 - prompt_toolkit_52 = self.prompt_toolkit.override(self: rec { 16870 - name = "prompt_toolkit-${version}"; 16423 + prompt_toolkit_52 = self.prompt_toolkit.overridePythonAttrs(oldAttrs: rec { 16424 + name = "${oldAttrs.pname}-${version}"; 16871 16425 version = "0.52"; 16872 - src = pkgs.fetchurl { 16426 + src = oldAttrs.src.override { 16427 + inherit version; 16873 16428 sha256 = "00h9ldqmb33nhg2kpks7paldf3n3023ipp124alwp96yz16s7f1m"; 16874 - url = "mirror://pypi/p/prompt_toolkit/${name}.tar.gz"; 16875 16429 }; 16876 16430 16877 16431 # No tests included in archive ··· 19083 18637 }; 19084 18638 }; 19085 18639 19086 - 19087 18640 pytz = buildPythonPackage rec { 19088 - name = "pytz-${version}"; 19089 - version = "2016.6.1"; 18641 + name = "${pname}-${version}"; 18642 + pname = "pytz"; 18643 + version = "2017.2"; 19090 18644 19091 - src = pkgs.fetchurl { 19092 - url = "mirror://pypi/p/pytz/${name}.tar.gz"; 19093 - sha256 = "6f57732f0f8849817e9853eb9d50d85d1ebb1404f702dbc44ee627c642a486ca"; 18645 + src = fetchPypi { 18646 + inherit pname version; 18647 + sha256 = "12cmd3j46d2gcw08bspvp6s9icfcvx88zjz52n1bli9dyvl5dh7m"; 18648 + extension = "zip"; 19094 18649 }; 19095 18650 19096 18651 checkPhase = '' 19097 - ${python.interpreter} -m unittest discover -s pytz/tests 18652 + python -m unittest discover -s pytz/tests 19098 18653 ''; 19099 18654 19100 18655 meta = { ··· 19103 18658 license = licenses.mit; 19104 18659 }; 19105 18660 }; 19106 - 19107 18661 19108 18662 pyutil = buildPythonPackage (rec { 19109 18663 name = "pyutil-2.0.0"; ··· 19386 18940 requests2 = throw "requests2 has been deprecated. Use requests instead."; 19387 18941 19388 18942 # use requests, not requests_2 19389 - requests = buildPythonPackage rec { 19390 - name = "requests-${version}"; 19391 - version = "2.13.0"; 19392 - 19393 - src = pkgs.fetchurl { 19394 - url = "mirror://pypi/r/requests/${name}.tar.gz"; 19395 - sha256 = "5722cd09762faa01276230270ff16af7acf7c5c45d623868d9ba116f15791ce8"; 19396 - }; 19397 - 19398 - nativeBuildInputs = [ self.pytest ]; 19399 - # sadly, tests require networking 19400 - doCheck = false; 19401 - 19402 - meta = { 19403 - description = "An Apache2 licensed HTTP library, written in Python, for human beings"; 19404 - homepage = http://docs.python-requests.org/en/latest/; 19405 - license = licenses.asl20; 19406 - }; 19407 - }; 18943 + requests = callPackage ../development/python-modules/requests { }; 19408 18944 19409 18945 requests_download = buildPythonPackage rec { 19410 18946 pname = "requests_download"; ··· 19908 19444 license = licenses.isc; 19909 19445 }; 19910 19446 }; 19447 + 19448 + restructuredtext_lint = callPackage ../development/python-modules/restructuredtext_lint { }; 19911 19449 19912 19450 robomachine = buildPythonPackage rec { 19913 19451 name = "robomachine-0.6"; ··· 21753 21291 }; 21754 21292 }); 21755 21293 21756 - sphinx-testing = buildPythonPackage rec { 21757 - name = "sphinx-testing-${version}"; 21758 - version = "0.7.1"; 21759 - 21760 - src = pkgs.fetchurl { 21761 - url = "mirror://pypi/s/sphinx-testing/${name}.tar.gz"; 21762 - sha256 = "0cd235ce939770ae5128eda01d8611fb1e36d8129399e98565f99fcbff3a8062"; 21763 - }; 21764 - 21765 - buildInputs = with self; [ mock ]; 21766 - propagatedBuildInputs = with self; [ sphinx six ]; 21767 - 21768 - checkPhase = '' 21769 - ${python.interpreter} -m unittest discover -s tests 21770 - ''; 21771 - 21772 - meta = { 21773 - homepage = https://github.com/sphinx-doc/sphinx-testing; 21774 - license = licenses.bsd2; 21775 - description = "Testing utility classes and functions for Sphinx extensions"; 21776 - }; 21777 - 21778 - }; 21294 + sphinx-testing = callPackage ../development/python-modules/sphinx-testing { }; 21779 21295 21780 21296 sphinxcontrib-blockdiag = buildPythonPackage (rec { 21781 21297 name = "${pname}-${version}"; ··· 22542 22058 }; 22543 22059 }; 22544 22060 22545 - testtools = buildPythonPackage rec { 22546 - name = "testtools-${version}"; 22547 - version = "1.8.0"; 22548 - 22549 - # Python 2 only judging from SyntaxError 22550 - disabled = isPy3k; 22551 - 22552 - src = pkgs.fetchurl { 22553 - url = "mirror://pypi/t/testtools/${name}.tar.gz"; 22554 - sha256 = "15yxz8d70iy1b1x6gd7spvblq0mjxjardl4vnaqasxafzc069zca"; 22555 - }; 22556 - 22557 - propagatedBuildInputs = with self; [ pbr python_mimeparse extras lxml unittest2 ]; 22558 - buildInputs = with self; [ traceback2 ]; 22559 - patches = [ ../development/python-modules/testtools_support_unittest2.patch ]; 22560 - 22561 - meta = { 22562 - description = "A set of extensions to the Python standard library's unit testing framework"; 22563 - homepage = http://pypi.python.org/pypi/testtools; 22564 - license = licenses.mit; 22565 - }; 22566 - }; 22061 + testtools = callPackage ../development/python-modules/testtools { }; 22567 22062 22568 22063 traitlets = buildPythonPackage rec { 22569 22064 pname = "traitlets"; ··· 23075 22570 23076 22571 twisted = callPackage ../development/python-modules/twisted { }; 23077 22572 23078 - tzlocal = buildPythonPackage rec { 23079 - name = "tzlocal-1.2.2"; 23080 - 23081 - propagatedBuildInputs = with self; [ pytz ]; 23082 - 23083 - src = pkgs.fetchurl { 23084 - url = "mirror://pypi/t/tzlocal/${name}.tar.gz"; 23085 - sha256 = "0paj7vlsb0np8b5sp4bv64wxv7qk2piyp7xg29pkhdjwsbls9fnb"; 23086 - }; 23087 - 23088 - # test fail (timezone test fail) 23089 - doCheck = false; 22573 + txtorcon = callPackage ../development/python-modules/txtorcon { }; 23090 22574 23091 - meta = with pkgs.stdenv.lib; { 23092 - description = "Tzinfo object for the local timezone"; 23093 - homepage = https://github.com/regebro/tzlocal; 23094 - license = licenses.cddl; 23095 - }; 23096 - }; 22575 + tzlocal = callPackage ../development/python-modules/tzlocal { }; 23097 22576 23098 22577 u-msgpack-python = callPackage ../development/python-modules/u-msgpack-python { }; 23099 22578 ··· 23768 23247 }; 23769 23248 }; 23770 23249 23771 - 23772 - werkzeug = buildPythonPackage rec { 23773 - name = "Werkzeug-0.11.10"; 23774 - 23775 - src = pkgs.fetchurl { 23776 - url = "mirror://pypi/W/Werkzeug/${name}.tar.gz"; 23777 - sha256 = "1vpf98k4jp4yhbv2jbyq8dj5fdasrd26rkq34pacs5n7mkxxlr6c"; 23778 - }; 23779 - 23780 - LC_ALL = "en_US.UTF-8"; 23781 - 23782 - propagatedBuildInputs = with self; [ itsdangerous ]; 23783 - buildInputs = with self; [ pytest requests pkgs.glibcLocales ]; 23784 - 23785 - 23786 - 23787 - meta = { 23788 - homepage = http://werkzeug.pocoo.org/; 23789 - description = "A WSGI utility library for Python"; 23790 - license = licenses.bsd3; 23791 - }; 23792 - }; 23250 + werkzeug = callPackage ../development/python-modules/werkzeug { }; 23793 23251 23794 23252 wheel = callPackage ../development/python-modules/wheel { }; 23795 23253 ··· 25832 25290 25833 25291 }; 25834 25292 25835 - service-identity = buildPythonPackage rec { 25836 - name = "service-identity-${version}"; 25837 - version = "16.0.0"; 25838 - 25839 - src = pkgs.fetchurl { 25840 - url = "mirror://pypi/s/service_identity/service_identity-${version}.tar.gz"; 25841 - sha256 = "0dih7i7d36nbllcxgfkvbnaj1wlzhwfnpr4b97dz74czylif4c06"; 25842 - }; 25843 - 25844 - propagatedBuildInputs = with self; [ 25845 - characteristic pyasn1 pyasn1-modules pyopenssl idna attrs 25846 - ]; 25847 - 25848 - buildInputs = with self; [ 25849 - pytest 25850 - ]; 25851 - 25852 - checkPhase = '' 25853 - py.test 25854 - ''; 25855 - }; 25293 + service-identity = callPackage ../development/python-modules/service_identity { }; 25856 25294 25857 25295 signedjson = buildPythonPackage rec { 25858 25296 name = "signedjson-${version}";