diff options
Diffstat (limited to 'pkgs/top-level/python-packages.nix')
-rw-r--r-- | pkgs/top-level/python-packages.nix | 919 |
1 files changed, 458 insertions, 461 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 75fcfd60f904..585655e746e6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1,3 +1,11 @@ +# This file contains the Python packages set. +# Each attribute is a Python library or a helper function. +# Expressions for Python libraries are supposed to be in `pkgs/development/python-modules/<name>/default.nix`. +# Python packages that do not need to be available for each interpreter version do not belong in this packages set. +# Examples are Python-based cli tools. +# +# For more details, please see the Python section in the Nixpkgs manual. + { pkgs , stdenv , python @@ -49,8 +57,11 @@ let fetchSource = {pname, version, sha256}: # Fetch a source tarball. let - url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${pname}-${version}.tar.gz"; - in pkgs.fetchurl {inherit url sha256;}; + urls = [ + "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${pname}-${version}.tar.gz" + "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${pname}-${version}.zip" + ]; + in pkgs.fetchurl {inherit urls sha256;}; fetcher = (if format == "wheel" then fetchWheel else if format == "setuptools" then fetchSource else throw "Unsupported kind ${kind}"); @@ -118,6 +129,8 @@ in { }; }; + phonenumbers = callPackage ../development/python-modules/phonenumbers { }; + agate-dbf = buildPythonPackage rec { name = "agate-dbf-0.1.0"; disabled = isPy3k; @@ -173,6 +186,8 @@ in { }; }; + asn1crypto = callPackage ../development/python-modules/asn1crypto { }; + # packages defined elsewhere bap = callPackage ../development/python-modules/bap { @@ -365,11 +380,9 @@ in { pyside = callPackage ../development/python-modules/pyside { }; - pysideApiextractor = callPackage ../development/python-modules/pyside/apiextractor.nix { }; - - pysideGeneratorrunner = callPackage ../development/python-modules/pyside/generatorrunner.nix { }; - - pysideShiboken = callPackage ../development/python-modules/pyside/shiboken.nix { }; + pysideShiboken = callPackage ../development/python-modules/pyside/shiboken.nix { + inherit (pkgs) libxml2 libxslt; # Do not need the Python bindings. + }; pysideTools = callPackage ../development/python-modules/pyside/tools.nix { }; @@ -751,6 +764,24 @@ in { }; }; + aniso8601 = buildPythonPackage rec { + name = "aniso8601-${version}"; + version = "1.2.0"; + + meta = { + description = "Parses ISO 8601 strings."; + homepage = "https://bitbucket.org/nielsenb/aniso8601"; + license = licenses.bsd3; + }; + + propagatedBuildInputs = with self; [ dateutil ]; + + src = pkgs.fetchurl { + url = "mirror://pypi/a/aniso8601/${name}.tar.gz"; + sha256 = "502400f82574afa804cc915d83f15c67533d364dcd594f8a6b9d2053f3404dd4"; + }; + }; + asgiref = buildPythonPackage rec { name = "asgiref-${version}"; version = "1.0.0"; @@ -1172,7 +1203,7 @@ in { }; meta = with pkgs.stdenv.lib; { - descriptions = "Library for reading, writing and rewriting python AST"; + description = "Library for reading, writing and rewriting python AST"; homepage = https://github.com/berkerpeksag/astor; license = licenses.bsd3; maintainers = with maintainers; [ nixy ]; @@ -1217,12 +1248,11 @@ in { }; apscheduler = buildPythonPackage rec { - name = "APScheduler-3.0.4"; - disabled = !isPy27; + name = "APScheduler-3.3.1"; src = pkgs.fetchurl { url = "mirror://pypi/A/APScheduler/${name}.tar.gz"; - sha256 = "1ljjhn6cv8b1pccsi3mgc887ypi2vim317r9p0zh0amd0bhkk6wb"; + sha256 = "f68874dff1bdffcc6ce3adb7840c1e4d162c609a3e3f831351df30b75732767b"; }; buildInputs = with self; [ @@ -1232,8 +1262,8 @@ in { twisted mock trollius - funcsigs gevent + setuptools_scm ]; propagatedBuildInputs = with self; [ @@ -1241,6 +1271,7 @@ in { pytz tzlocal futures + funcsigs ]; meta = with pkgs.stdenv.lib; { @@ -1623,6 +1654,23 @@ in { }; }; + noise = buildPythonPackage rec { + name = "noise-${version}"; + version = "1.2.2"; + + src = pkgs.fetchurl { + url = "mirror://pypi/n/noise/${name}.tar.gz"; + sha256 = "0rcv40dcshqpchwkdlhsv3n68h9swm9fh4d1cgzr2hsp6rs7k8jp"; + }; + + meta = with stdenv.lib; { + homepage = "https://github.com/caseman/noise"; + description = "Native-code and shader implementations of Perlin noise"; + license = licenses.mit; + platforms = platforms.all; + }; + }; + awscli = buildPythonPackage rec { name = "awscli-${version}"; version = "1.11.75"; @@ -2027,13 +2075,13 @@ in { }; babelfish = buildPythonPackage rec { - version = "0.5.3"; + version = "0.5.5"; name = "babelfish-${version}"; disabled = isPy3k; src = pkgs.fetchurl { url = "mirror://pypi/b/babelfish/${name}.tar.gz"; - sha256 = "0wrw21dyq7v6lbffwvi1ik43d7dhmcv8xvgrrihhiv7ys1rd3gag"; + sha256 = "8380879fa51164ac54a3e393f83c4551a275f03617f54a99d70151358e444104"; }; meta = { @@ -2470,6 +2518,22 @@ in { propagatedBuildInputs = with self; [ iowait psutil pyzmq tornado mock ]; }; + colorclass = buildPythonPackage rec { + version = "2.2.0"; + name = "colorclass-${version}"; + + src = pkgs.fetchurl { + url = "mirror://pypi/c/colorclass/${name}.tar.gz"; + sha256 = "b05c2a348dfc1aff2d502527d78a5b7b7e2f85da94a96c5081210d8e9ee8e18b"; + }; + + meta = { + homepage = "https://github.com/Robpol86/colorclass"; + license = licenses.mit; + description = "Automatic support for console colors"; + }; + }; + colorlog = buildPythonPackage rec { name = "colorlog-${version}"; version = "2.6.1"; @@ -2522,6 +2586,8 @@ in { doCheck = false; # lazy packager }; + csscompressor = callPackage ../development/python-modules/csscompressor.nix {}; + csvkit = buildPythonPackage rec { name = "csvkit-${version}"; version = "0.9.1"; @@ -2984,11 +3050,10 @@ in { to do lots of things, you're probably outside the use cases. Either trust those users, or don't. ''; - homepage = https://github.com/jsocol/bleach; - downloadPage = https://github.com/jsocol/bleach/releases; + homepage = https://github.com/mozilla/bleach; + downloadPage = https://github.com/mozilla/bleach/releases; license = licenses.asl20; maintainers = with maintainers; [ prikhi ]; - platforms = platforms.linux; }; }; @@ -3187,6 +3252,9 @@ in { runHook postCheck ''; + # Network access + doCheck = false; + meta = { homepage = https://github.com/boto/boto3; license = stdenv.lib.licenses.asl20; @@ -3787,15 +3855,17 @@ in { cherrypy = buildPythonPackage (rec { name = "cherrypy-${version}"; - version = "3.2.2"; + version = "8.7.0"; src = pkgs.fetchurl { - url = "http://download.cherrypy.org/cherrypy/${version}/CherryPy-${version}.tar.gz"; - sha256 = "14dn129h69wj0h8yr0bjwbrk8kygl6mkfnxc5m3fxhlm4xb8hnnw"; + url = "mirror://pypi/C/CherryPy/CherryPy-${version}.tar.gz"; + sha256 = "cbf418bf46458a67eb841944f2d414c23bf59d090baf2a28704bd67243e6a79f"; }; - # error: invalid command 'test' - doCheck = false; + # wsgiserver.ssl_pyopenssl is broken on py3k. + doCheck = !isPy3k; + buildInputs = with self; [ pytest setuptools_scm pytestrunner ]; + propagatedBuildInputs = with self; [ six ]; meta = { homepage = "http://www.cherrypy.org"; @@ -4380,6 +4450,8 @@ in { }; }; + coveralls = callPackage ../development/python-modules/coveralls { }; + coverage = buildPythonPackage rec { name = "coverage-4.0.1"; @@ -4536,25 +4608,39 @@ in { cryptography = buildPythonPackage rec { # also bump cryptography_vectors - name = "cryptography-${version}"; - version = "1.7.2"; + pname = "cryptography"; + name = "${pname}${version}"; + version = "1.8.1"; - src = pkgs.fetchurl { - url = "mirror://pypi/c/cryptography/${name}.tar.gz"; - sha256 = "1ad9zmzi31fnz31qfchxcwiydvlxq88xndlgsvzr7m537n5vd347"; + src = fetchPypi { + inherit pname version; + sha256 = "323524312bb467565ebca7e50c8ae5e9674e544951d28a2904a50012a8828190"; }; - buildInputs = [ pkgs.openssl self.pretend self.cryptography_vectors - self.iso8601 self.pyasn1 self.pytest_29 self.py self.hypothesis self.pytz ] + buildInputs = [ pkgs.openssl self.cryptography_vectors ] ++ optional stdenv.isDarwin pkgs.darwin.apple_sdk.frameworks.Security; - propagatedBuildInputs = with self; [ six idna ipaddress pyasn1 cffi pyasn1-modules pytz ] - ++ optional (pythonOlder "3.4") self.enum34; + propagatedBuildInputs = with self; [ + idna + asn1crypto + packaging + six + ] ++ optional (pythonOlder "3.4") enum34 + ++ optional (pythonOlder "3.3") ipaddress + ++ optional (!isPyPy) cffi; + + checkInputs = with self; [ + pytest + pretend + iso8601 + pytz + hypothesis + ]; # The test assumes that if we're on Sierra or higher, that we use `getentropy`, but for binary # compatibility with pre-Sierra for binary caches, we hide that symbol so the library doesn't # use it. This boils down to them checking compatibility with `getentropy` in two different places, # so let's neuter the second test. - patchPhase = '' + postPatch = '' substituteInPlace ./tests/hazmat/backends/test_openssl.py --replace '"16.0"' '"99.0"' ''; @@ -4565,13 +4651,17 @@ in { cryptography_vectors = buildPythonPackage rec { # also bump cryptography - name = "cryptography_vectors-${version}"; - version = "1.7.2"; + pname = "cryptography_vectors"; + name = "${pname}${version}"; + version = "1.8.1"; - src = pkgs.fetchurl { - url = "mirror://pypi/c/cryptography-vectors/${name}.tar.gz"; - sha256 = "1p5cw3dzgcpzmp81qb9860hn9qlcvr4rnf0fy31fbvhxl7lfxr2b"; + src = fetchPypi { + inherit pname version; + sha256 = "2fd61facea08800ca98ac923f6d02f48a7ae6648025b29cdeb51987c1532add6"; }; + + # No tests included + doCheck = false; }; oslo-vmware = buildPythonPackage rec { @@ -4782,11 +4872,13 @@ in { idna = buildPythonPackage rec { - name = "idna-2.0"; + pname = "idna"; + version = "2.5"; + name = "${pname}-${version}"; - src = pkgs.fetchurl { - url = "mirror://pypi/i/idna/${name}.tar.gz"; - sha256 = "0frxgmgi234lr9hylg62j69j4ik5zhg0wz05w5dhyacbjfnrl68n"; + src = fetchPypi { + inherit pname version; + sha256 = "3cb5ce08046c4e3a560fc02f138d0ac63e00f8ce5901a56b32ec8b7994082aab"; }; meta = { @@ -4922,6 +5014,9 @@ in { sha256 = "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk"; }; + # No tests in archive + doCheck = false; + meta = { homepage = https://github.com/alex/pretend; license = licenses.bsd3; @@ -5160,6 +5255,8 @@ in { }; }; + pytest-httpbin = callPackage ../development/python-modules/pytest-httpbin { }; + pytestcache = buildPythonPackage rec { name = "pytest-cache-1.0"; src = pkgs.fetchurl { @@ -5179,7 +5276,7 @@ in { meta = { license = licenses.mit; - website = "https://pypi.python.org/pypi/pytest-cache/"; + homepage = "https://pypi.python.org/pypi/pytest-cache/"; description = "pytest plugin with mechanisms for caching across test runs"; }; }; @@ -5197,7 +5294,7 @@ in { meta = { license = licenses.mit; - website = https://pypi.python.org/pypi/pytest-catchlog/; + homepage = https://pypi.python.org/pypi/pytest-catchlog/; description = "py.test plugin to catch log messages. This is a fork of pytest-capturelog."; }; }; @@ -5273,7 +5370,7 @@ in { meta = { license = licenses.mit; - website = "https://pypi.python.org/pypi/pytest-flakes"; + homepage = "https://pypi.python.org/pypi/pytest-flakes"; description = "pytest plugin to check source code with pyflakes"; }; }; @@ -5319,7 +5416,7 @@ in { meta = { license = licenses.mit; - website = "https://pypi.python.org/pypi/pytest-pep8"; + homepage = "https://pypi.python.org/pypi/pytest-pep8"; description = "pytest plugin to check PEP8 requirements"; }; }; @@ -5384,7 +5481,7 @@ in { meta = { license = licenses.asl20; - website = "https://pypi.python.org/pypi/pytest-quickcheck"; + homepage = "https://pypi.python.org/pypi/pytest-quickcheck"; description = "pytest plugin to generate random data inspired by QuickCheck"; }; }; @@ -5637,12 +5734,13 @@ in { }); dask = buildPythonPackage rec { - name = "dask-${version}"; - version = "0.13.0"; + pname = "dask"; + name = "${pname}-${version}"; + version = "0.14.1"; - src = pkgs.fetchurl { - url = "mirror://pypi/d/dask/${name}.tar.gz"; - sha256 = "1f8r6jj9666cnvx3f8bilcx0017smmlw4i4v2p1nwxshs0k514hs"; + src = fetchPypi { + inherit pname version; + sha256 = "46c8ef9aa41a5755f2194b535bff7fdef1343d3993ab294b198caf95155ec94e"; }; buildInputs = with self; [ pytest ]; @@ -6120,11 +6218,11 @@ in { decorator = buildPythonPackage rec { name = "decorator-${version}"; - version = "4.0.10"; + version = "4.0.11"; src = pkgs.fetchurl { url = "mirror://pypi/d/decorator/${name}.tar.gz"; - sha256 = "9c6e98edcb33499881b86ede07d9968c81ab7c769e28e9af24075f0a5379f070"; + sha256 = "953d6bf082b100f43229cf547f4f97f97e970f5ad645ee7601d55ff87afdfe76"; }; meta = { @@ -6289,16 +6387,14 @@ in { dill = buildPythonPackage rec { name = "dill-${version}"; - version = "0.2.5"; + version = "0.2.6"; src = pkgs.fetchurl { - url = "mirror://pypi/d/dill/${name}.tgz"; - sha256 = "431c9d46e190dcdf1397234cf659d66e2e22e33b0474ed6ee2d0b16c9c0ea319"; + url = "mirror://pypi/d/dill/${name}.zip"; + sha256 = "6c1ccca68be483fa8c66e85a89ffc850206c26373aa77a97b83d8d0994e7f1fd"; }; - propagatedBuildInputs = with self; [objgraph]; - - # failing tests + # TypeError: don't know how to make test from: {'byref': False, 'recurse': False, 'protocol': 3, 'fmode': 0} doCheck = false; meta = { @@ -6966,6 +7062,8 @@ in { }; }; + ezdxf = callPackage ../development/python-modules/ezdxf {}; + facebook-sdk = buildPythonPackage rec { name = "facebook-sdk-0.4.0"; @@ -7749,6 +7847,9 @@ in { }; }); + + htmlmin = callPackage ../development/python-modules/htmlmin.nix {}; + httpauth = buildPythonPackage rec { version = "0.3"; name = "httpauth-${version}"; @@ -8131,7 +8232,7 @@ in { description = "Cross-platform Bluetooth API for Python"; maintainers = with maintainers; [ leenaars ]; license = licenses.gpl3; - platform = platforms.all; + platforms = platforms.all; }; }; @@ -8766,7 +8867,7 @@ in { meta = { description = "A Python-based build/distribution/deployment scripting tool"; homepage = http://github.com/paver/paver; - matinainers = with maintainers; [ lovek323 ]; + maintainers = with maintainers; [ lovek323 ]; platforms = platforms.unix; }; }; @@ -9056,7 +9157,7 @@ in { description = "Call graph visualizations for Python applications"; maintainers = with maintainers; [ auntie ]; license = licenses.gpl2; - platform = platforms.all; + platforms = platforms.all; }; }; @@ -9192,7 +9293,7 @@ in { description = "Python port of libaxolotl-android"; maintainers = with maintainers; [ abbradar ]; license = licenses.gpl3; - platform = platforms.all; + platforms = platforms.all; }; }; @@ -9210,7 +9311,7 @@ in { description = "Curve25519 with ed25519 signatures"; maintainers = with maintainers; [ abbradar ]; license = licenses.gpl3; - platform = platforms.all; + platforms = platforms.all; }; }; @@ -9235,7 +9336,7 @@ in { description = "Postfix policy engine for Sender Policy Framework (SPF) checking"; maintainers = with maintainers; [ abbradar ]; license = licenses.asl20; - platform = platforms.all; + platforms = platforms.all; }; }; @@ -9440,7 +9541,7 @@ in { description = "Python API for Sendmail Milters (SPF)"; maintainers = with maintainers; [ abbradar ]; license = licenses.gpl2; - platform = platforms.all; + platforms = platforms.all; }; }; @@ -9604,6 +9705,23 @@ in { }; }; + safe = buildPythonPackage rec { + version = "0.4"; + name = "Safe-${version}"; + + src = pkgs.fetchurl { + url = "mirror://pypi/S/Safe/${name}.tar.gz"; + sha256 = "a2fdac9fe8a9dcf02b438201d6ce0b7be78f85dc6492d03edfb89be2adf489de"; + }; + + buildInputs = with self; [ nose ]; + meta = { + homepage = "https://github.com/lepture/safe"; + license = licenses.bsd3; + description = "Check password strength"; + }; + }; + samplerate = buildPythonPackage rec { name = "scikits.samplerate-${version}"; version = "0.3.3"; @@ -9641,7 +9759,7 @@ in { homepage = "http://sarge.readthedocs.org/"; description = "A wrapper for subprocess which provides command pipeline functionality"; license = licenses.bsd3; - platform = platforms.all; + platforms = platforms.all; maintainers = with maintainers; [ abbradar ]; }; }; @@ -10200,6 +10318,8 @@ in { }; }; + vcrpy = callPackage ../development/python-modules/vcrpy { }; + venusian = buildPythonPackage rec { name = "venusian-1.0"; @@ -10387,31 +10507,6 @@ in { }; }; - - django_1_7 = buildPythonPackage rec { - name = "Django-${version}"; - version = "1.7.11"; - disabled = pythonOlder "2.7"; - - src = pkgs.fetchurl { - url = "http://www.djangoproject.com/m/releases/1.7/${name}.tar.gz"; - sha256 = "18arf0zr98q2gxhimm2fgh0avwcdax1mcnps0cyn06wgrr7i8f90"; - }; - - # too complicated to setup - doCheck = false; - - # patch only $out/bin to avoid problems with starter templates (see #3134) - postFixup = '' - wrapPythonProgramsIn $out/bin "$out $pythonPath" - ''; - - meta = { - description = "A high-level Python Web framework"; - homepage = https://www.djangoproject.com/; - }; - }; - django_1_6 = buildPythonPackage rec { name = "Django-${version}"; version = "1.6.11.5"; @@ -10603,7 +10698,7 @@ in { sha256 = "0wxvpmjdzk0aajk33y4himn3wqjx7k0aqlka9j8ay3yfav78bdq0"; }; - propagatedBuildInputs = with self; [ django_1_7 ]; + propagatedBuildInputs = with self; [ django ]; # tests appear to be broken on 0.6.1 at least doCheck = ( version != "0.6.1" ); @@ -11468,6 +11563,24 @@ in { }; }; + flask-compress = buildPythonPackage rec { + name = "Flask-Compress-${version}"; + version = "1.3.2"; + + src = pkgs.fetchurl { + url = "mirror://pypi/F/Flask-Compress/${name}.tar.gz"; + sha256 = "4fbb53e7f6ce8b1458a2c3d7a528564912f2641ab2f9f43819fc96ed7f770734"; + }; + + propagatedBuildInputs = with self; [ flask ]; + + meta = { + description = "Compress responses in your Flask app with gzip"; + homepage = "https://libwilliam.github.io/flask-compress/"; + license = licenses.mit; + }; + }; + flask-cors = buildPythonPackage rec { name = "Flask-Cors-${version}"; version = "2.1.2"; @@ -11558,6 +11671,53 @@ in { }; }; + flask-restful = buildPythonPackage rec { + name = "Flask-RESTful-${version}"; + version = "0.3.5"; + + src = pkgs.fetchurl { + url = "mirror://pypi/F/Flask-RESTful/${name}.tar.gz"; + sha256 = "cce4aeff959b571136b5af098bebe7d3deeca7eb1411c4e722ff2c5356ab4c42"; + }; + + # TypeError: Only byte strings can be passed to C code + patchPhase = if isPy3k then '' + rm tests/test_crypto.py tests/test_paging.py + '' else null; + buildInputs = with self; [ nose mock blinker ]; + propagatedBuildInputs = with self; [ flask six pytz aniso8601 pycrypto ]; + PYTHON_EGG_CACHE = "`pwd`/.egg-cache"; + + meta = { + homepage = "http://flask-restful.readthedocs.io/"; + description = "REST API building blocks for Flask"; + license = licenses.bsd3; + }; + }; + + flask-restplus = buildPythonPackage rec { + name = "flask-restplus-${version}"; + # Exactly 0.8.6 is required by flexget + version = "0.8.6"; + disabled = isPy3k; + + src = pkgs.fetchurl { + url = "mirror://pypi/f/flask-restplus/${name}.tar.gz"; + sha256 = "3bb76cc156b9a09da62396d82b29fa31e4f27cccf79528538fe7155cf2785593"; + }; + + # Requires additional packages. + doCheck = false; + buildInputs = with self; [ nose blinker tzlocal ]; + propagatedBuildInputs = with self; [ flask six jsonschema pytz aniso8601 flask-restful ]; + + meta = { + homepage = "https://github.com/noirbizarre/flask-restplus"; + description = "Fast, easy and documented API development with Flask"; + license = licenses.mit; + }; + }; + flask_script = buildPythonPackage rec { name = "Flask-Script-${version}"; version = "2.0.5"; @@ -12582,6 +12742,27 @@ in { }; }; + rebulk = buildPythonPackage rec { + version = "0.8.2"; + name = "rebulk-${version}"; + + src = pkgs.fetchurl { + url = "mirror://pypi/r/rebulk/${name}.tar.gz"; + sha256 = "8c09901bda7b79a21d46faf489d67d017aa54d38bdabdb53f824068a6640401a"; + }; + + # Some kind of trickery with imports that doesn't work. + doCheck = false; + buildInputs = with self; [ pytest pytestrunner ]; + propagatedBuildInputs = with self; [ six regex ]; + + meta = { + homepage = "https://github.com/Toilal/rebulk/"; + license = licenses.mit; + description = "Advanced string matching from simple patterns"; + }; + }; + gunicorn = callPackage ../development/python-modules/gunicorn.nix { }; hawkauthlib = buildPythonPackage rec { @@ -12713,23 +12894,7 @@ in { }; }); - httpbin = buildPythonPackage rec { - name = "httpbin-0.2.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/h/httpbin/${name}.tar.gz"; - sha256 = "6b57f563900ecfe126015223a259463848daafbdc2687442317c0992773b9054"; - }; - - propagatedBuildInputs = with self; [ flask markupsafe decorator itsdangerous six ]; - - meta = { - homepage = https://github.com/kennethreitz/httpbin; - description = "HTTP Request & Response Service"; - license = licenses.mit; - }; - - }; + httpbin = callPackage ../development/python-modules/httpbin { }; httplib2 = buildPythonPackage rec { name = "httplib2-0.9.2"; @@ -13079,96 +13244,11 @@ in { }; }; - ipykernel = buildPythonPackage rec { - version = "4.5.2"; - name = "ipykernel-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/i/ipykernel/${name}.tar.gz"; - sha256 = "5a54f25f0e6c8ee74c362c23f9a95e10e74c6b7f5ef42059c861ff6f26d89462"; - }; + ipykernel = callPackage ../development/python-modules/ipykernel { }; - buildInputs = with self; [ nose ] ++ optionals isPy27 [mock]; - propagatedBuildInputs = with self; [ - ipython - jupyter_client - pexpect - traitlets - tornado - ]; + ipyparallel = callPackage ../development/python-modules/ipyparallel { }; - # Tests require backends. - # I don't want to add all supported backends as propagatedBuildInputs - doCheck = false; - - meta = { - description = "IPython Kernel for Jupyter"; - homepage = http://ipython.org/; - license = licenses.bsd3; - maintainers = with maintainers; [ fridh ]; - }; - }; - - ipyparallel = buildPythonPackage rec { - version = "6.0.0"; - name = "ipyparallel-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/i/ipyparallel/${name}.tar.gz"; - sha256 = "9bb5032e98a8c73ddb3da5fb8eecd93c676a5278b68799ab19257b348a0a27f6"; - }; - - buildInputs = with self; [ nose ]; - - propagatedBuildInputs = with self; [ dateutil ipython_genutils decorator pyzmq ipython jupyter_client ipykernel tornado - ] ++ optionals (!isPy3k) [ futures ]; - - # Requires access to cluster - doCheck = false; - - meta = { - description = "Interactive Parallel Computing with IPython"; - homepage = http://ipython.org/; - license = licenses.bsd3; - maintainers = with maintainers; [ fridh ]; - }; - - }; - - ipython = buildPythonPackage rec { - version = "5.3.0"; - name = "ipython-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/i/ipython/${name}.tar.gz"; - sha256 = "bf5e615e7d96dac5a61fbf98d9e2926d98aa55582681bea7e9382992a3f43c1d"; - }; - - prePatch = stdenv.lib.optionalString stdenv.isDarwin '' - substituteInPlace setup.py --replace "'gnureadline'" " " - ''; - - buildInputs = with self; [ nose pkgs.glibcLocales pygments ] ++ optionals isPy27 [mock]; - - propagatedBuildInputs = with self; - [ backports_shutil_get_terminal_size decorator pickleshare prompt_toolkit - simplegeneric traitlets requests2 pathlib2 pexpect ] - ++ optionals stdenv.isDarwin [appnope]; - - LC_ALL="en_US.UTF-8"; - - doCheck = false; # Circular dependency with ipykernel - - checkPhase = '' - nosetests - ''; - meta = { - description = "IPython: Productive Interactive Computing"; - homepage = http://ipython.org/; - license = licenses.bsd3; - maintainers = with maintainers; [ bjornfor jgeerds fridh ]; - }; - }; + ipython = callPackage ../development/python-modules/ipython { }; ipython_genutils = buildPythonPackage rec { version = "0.2.0"; @@ -13195,28 +13275,7 @@ in { }; - ipywidgets = buildPythonPackage rec { - version = "5.2.2"; - name = "ipywidgets-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/i/ipywidgets/${name}.tar.gz"; - sha256 = "baf6098f054dd5eacc2934b8ea3bef908b81ca8660d839f1f940255a72c660d2"; - }; - - # Tests are not distributed - doCheck = false; - - buildInputs = with self; [ nose pytest ]; - propagatedBuildInputs = with self; [ipython ipykernel traitlets notebook widgetsnbextension ]; - - meta = { - description = "IPython HTML widgets for Jupyter"; - homepage = http://ipython.org/; - license = licenses.bsd3; - maintainers = with maintainers; [ fridh ]; - }; - }; + ipywidgets = callPackage ../development/python-modules/ipywidgets { }; ipaddr = buildPythonPackage rec { name = "ipaddr-2.1.10"; @@ -13301,6 +13360,10 @@ in { }; }; + iso-639 = callPackage ../development/python-modules/iso-639 {}; + + iso3166 = callPackage ../development/python-modules/iso3166 {}; + iso8601 = buildPythonPackage rec { name = "iso8601-${version}"; version = "0.1.11"; @@ -13343,30 +13406,7 @@ in { jabberbot = callPackage ../development/python-modules/jabberbot.nix {}; - jedi = buildPythonPackage (rec { - name = "jedi-0.9.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/j/jedi/${name}.tar.gz"; - sha256 = "0c8x962ynpx001fdvp07m2q5jk4igkxbj3rmnydavphvlgxijk1v"; - }; - - buildInputs = [ self.pytest ]; - - checkPhase = '' - py.test test - ''; - - # 7 failed - doCheck = false; - - meta = { - homepage = https://github.com/davidhalter/jedi; - description = "An autocompletion tool for Python that can be used for text editors"; - license = licenses.lgpl3Plus; - maintainers = with maintainers; [ garbas ]; - }; - }); + jedi = callPackage ../development/python-modules/jedi { }; jellyfish = buildPythonPackage rec { version = "0.5.2"; @@ -13505,32 +13545,7 @@ in { inherit (pkgs.jsonnet) name src; }; - jupyter_client = buildPythonPackage rec { - version = "5.0.0"; - name = "jupyter_client-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/j/jupyter_client/${name}.tar.gz"; - sha256 = "2766f9c2deb9ae826e65d53a56a36d69b184f63d0dcb7710835273327126bc5b"; - }; - - buildInputs = with self; [ nose ]; - propagatedBuildInputs = with self; [traitlets jupyter_core pyzmq dateutil] ++ optional isPyPy py; - - checkPhase = '' - nosetests -v - ''; - - # Circular dependency with ipykernel - doCheck = false; - - meta = { - description = "Jupyter protocol implementation and client libraries"; - homepage = http://jupyter.org/; - license = licenses.bsd3; - maintainers = with maintainers; [ fridh ]; - }; - }; + jupyter_client = callPackage ../development/python-modules/jupyter_client { }; jupyter_core = buildPythonPackage rec { version = "4.3.0"; @@ -13735,17 +13750,7 @@ in { }; }; - kitchen = buildPythonPackage (rec { - name = "kitchen-1.1.1"; - disabled = isPy3k; - - meta.maintainers = with maintainers; [ mornfall ]; - - src = pkgs.fetchurl { - url = "mirror://pypi/k/kitchen/kitchen-1.1.1.tar.gz"; - sha256 = "0ki840hjk1q19w6icv0dj2jxb00966nwy9b1jib0dgdspj00yrr5"; - }; - }); + kitchen = callPackage ../development/python-modules/kitchen/default.nix { }; pylast = buildPythonPackage rec { name = "pylast-${version}"; @@ -13946,26 +13951,7 @@ in { }; }; - line_profiler = buildPythonPackage rec{ - version = "1.0"; - name = "line_profiler-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/l/line_profiler/${name}.tar.gz"; - sha256 = "a9e0c9ffa814f1215107c86c890afa8e63bec5a37d951f6f9d3668c1df2b1900"; - }; - - buildInputs = with self; [ cython ]; - - disabled = isPyPy; - - meta = { - description = "Line-by-line profiler"; - homepage = https://github.com/rkern/line_profiler; - license = licenses.bsd3; - maintainers = with maintainers; [ fridh ]; - }; - }; + line_profiler = callPackage ../development/python-modules/line_profiler { }; linode = buildPythonPackage rec { name = "linode-${version}"; @@ -14077,7 +14063,7 @@ in { }; }; - llvmlite = callPackage ../development/python-modules/llvmlite {llvm=pkgs.llvm_38;}; + llvmlite = callPackage ../development/python-modules/llvmlite {llvm=pkgs.llvm_39;}; lockfile = buildPythonPackage rec { pname = "lockfile"; @@ -14227,17 +14213,19 @@ in { src = pkgs.file.src; patchPhase = '' - substituteInPlace python/magic.py --replace "find_library('magic')" "'${pkgs.file}/lib/libmagic.so'" + substituteInPlace python/magic.py --replace "find_library('magic')" "'${pkgs.file}/lib/libmagic.${if stdenv.isDarwin then "dylib" else "so"}'" ''; - buildInputs = with self; [ python pkgs.file ]; + buildInputs = with self; [ pkgs.file ]; preConfigure = "cd python"; + # No test suite + doCheck = false; + meta = { description = "A Python wrapper around libmagic"; homepage = http://www.darwinsys.com/file/; - broken = true; }; }; @@ -14289,11 +14277,11 @@ in { markupsafe = buildPythonPackage rec { name = "markupsafe-${version}"; - version = "0.23"; + version = "1.0"; src = pkgs.fetchurl { url = "mirror://pypi/M/MarkupSafe/MarkupSafe-${version}.tar.gz"; - sha256 = "a4ec1aff59b95a14b45eb2e23761a0179e98319da5a7eb76b56ea8cdc7b871c3"; + sha256 = "0rdn1s8x9ni7ss8rfiacj7x1085lx8mh2zdwqslnw8xc3l4nkgm6"; }; meta = { @@ -14773,7 +14761,7 @@ in { buildInputs = with self; [nose]; meta = { - decription = "The fastest markdown parser in pure Python"; + description = "The fastest markdown parser in pure Python"; homepage = https://github.com/lepture/mistune; license = licenses.bsd3; }; @@ -15172,6 +15160,9 @@ in { sha256 = "bda6abb8188d9abb429bd17ed15bc7433f77f1b05a78cfff761711ed81daa7a2"; }; + # No tests in archive + doCheck = false; + meta = { homepage = http://github.com/mrocklin/multipledispatch/; description = "A relatively sane approach to multiple dispatch in Python"; @@ -15745,23 +15736,35 @@ in { propagatedBuildInputs = with self ; [ aiodns pyasn1 pkgs.gnupg1 pyasn1-modules]; meta = { - meta = "Elegant Python library for XMPP"; + description = "Elegant Python library for XMPP"; license = licenses.mit; homepage = https://dev.louiz.org/projects/slixmpp; }; }; netaddr = buildPythonPackage rec { - name = "netaddr-0.7.18"; - doCheck = !isPy35; # https://github.com/drkjam/netaddr/issues/117 + pname = "netaddr"; + version = "0.7.19"; + name = "${pname}-${version}"; - src = pkgs.fetchurl { - url = "mirror://pypi/n/netaddr/${name}.tar.gz"; - sha256 = "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1"; + src = fetchPypi { + inherit pname version; + sha256 = "38aeec7cdd035081d3a4c306394b19d677623bf76fa0913f6695127c7753aefd"; }; LC_ALL = "en_US.UTF-8"; - buildInputs = [ pkgs.glibcLocales ]; + buildInputs = with self; [ pkgs.glibcLocales pytest ]; + + checkPhase = '' + py.test netaddr/tests + ''; + + patches = [ + (pkgs.fetchpatch { + url = https://github.com/drkjam/netaddr/commit/2ab73f10be7069c9412e853d2d0caf29bd624012.patch; + sha256 = "08rn1s3w9424jhandy4j9sksy852ny00088zh15nirw5ajqg1dn7"; + }) + ]; meta = { homepage = https://github.com/drkjam/netaddr/; @@ -16117,35 +16120,7 @@ in { buildInputs = with self; [ nose ]; }; - notebook = buildPythonPackage rec { - version = "4.4.1"; - name = "notebook-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/n/notebook/${name}.tar.gz"; - sha256 = "dfadef2babd7c04c6c257df7d07d7ba587e503dbb4e4c95305f9a95b8d3a9765"; - }; - - LC_ALL = "en_US.UTF-8"; - - buildInputs = with self; [nose pkgs.glibcLocales] ++ optionals isPy27 [mock]; - - propagatedBuildInputs = with self; [jinja2 tornado ipython_genutils traitlets jupyter_core jupyter_client nbformat nbconvert ipykernel terminado requests2 pexpect]; - - checkPhase = '' - nosetests -v - ''; - - # Certain tests fail due to being in a chroot. - # PermissionError - doCheck = false; - meta = { - description = "The Jupyter HTML notebook is a web-based notebook environment for interactive computing"; - homepage = http://jupyter.org/; - license = licenses.bsd3; - maintainers = with maintainers; [ fridh ]; - }; - }; + notebook = callPackage ../development/python-modules/notebook { }; notify = pkgs.stdenv.mkDerivation (rec { name = "python-notify-0.1.1"; @@ -16299,13 +16274,13 @@ in { # Therefore we create a separate env for it. scons = pkgs.python27.withPackages(ps: [ pkgs.scons ]); in buildPythonPackage rec { - version = "0.5.21.3"; + version = "0.5.25"; name = "Nuitka-${version}"; # Latest version is not yet on PyPi src = pkgs.fetchurl { url = "https://github.com/kayhayen/Nuitka/archive/${version}.tar.gz"; - sha256 = "1i2069hxb94q9kkwcbky59fin8hk1vlj90lwgmrdhn1srvig1cq3"; + sha256 = "11psz0pyj56adv4b3f47hl8jakvp2mc2c85s092a5rsv1la1a0aa"; }; buildInputs = with self; stdenv.lib.optionals doCheck [ vmprof pyqt4 ]; @@ -18224,6 +18199,9 @@ in { checkPhase = '' nosetests -v $out/${python.sitePackages} ''; + postPatch = '' + substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" "" + ''; }; paho-mqtt = buildPythonPackage rec { @@ -18996,8 +18974,6 @@ in { }; }; - proselint = callPackage ../tools/text/proselint { }; - pylibconfig2 = buildPythonPackage rec { name = "pylibconfig2-${version}"; version = "0.2.4"; @@ -19391,10 +19367,10 @@ in { prompt_toolkit = buildPythonPackage rec { name = "prompt_toolkit-${version}"; - version = "1.0.13"; + version = "1.0.14"; src = pkgs.fetchurl { - sha256 = "33d68ca09f76cd73287fde7df5748ffacf26a8238dd61ee81ac50860ea7c6776"; + sha256 = "cc66413b1b4b17021675d9f2d15d57e640b06ddfd99bb724c73484126d22622f"; url = "mirror://pypi/p/prompt_toolkit/${name}.tar.gz"; }; checkPhase = '' @@ -19486,11 +19462,11 @@ in { }); psycopg2 = buildPythonPackage rec { - name = "psycopg2-2.6.1"; + name = "psycopg2-2.7.1"; disabled = isPyPy; src = pkgs.fetchurl { url = "mirror://pypi/p/psycopg2/${name}.tar.gz"; - sha256 = "0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva"; + sha256 = "86c9355f5374b008c8479bc00023b295c07d508f7c3b91dbd2e74f8925b1d9c6"; }; buildInputs = optional stdenv.isDarwin pkgs.openssl; propagatedBuildInputs = with self; [ pkgs.postgresql ]; @@ -19814,11 +19790,11 @@ in { }; pygit2 = buildPythonPackage rec { - name = "pygit2-0.24.0"; + name = "pygit2-0.25.0"; src = pkgs.fetchurl { url = "mirror://pypi/p/pygit2/${name}.tar.gz"; - sha256 = "01c155ls0h5pvpdkrk8ld6fscshmz4fchcwxrg488dbij1zdjxms"; + sha256 = "0wf5rp0fvrw7j3j18dvwjq6xqlbm611wd55aphrfpps0v1gxh3ny"; }; preConfigure = ( if stdenv.isDarwin then '' @@ -20576,6 +20552,8 @@ in { }; }; + pyspread = callPackage ../development/python-modules/pyspread { }; + pyx = buildPythonPackage rec { name = "pyx-${version}"; version = "0.14.1"; @@ -20705,11 +20683,11 @@ in { }; PyICU = buildPythonPackage rec { - name = "PyICU-1.9.5"; + name = "PyICU-1.9.6"; src = pkgs.fetchurl { url = "mirror://pypi/P/PyICU/${name}.tar.gz"; - sha256 = "16rmxy9y0qhqqna2v49i7nzwm09as699rbyvh4raw7w602w55c3k"; + sha256 = "0l151zhhyiazzdz8skpxgrw1x4nqa9pq2cwni6d97anmg97i7hn5"; }; buildInputs = [ pkgs.icu ]; @@ -21458,6 +21436,38 @@ in { }; }; + pyplatec = buildPythonPackage rec { + name = "PyPlatec-${version}"; + version = "1.4.0"; + + src = pkgs.fetchurl { + url = "mirror://pypi/P/PyPlatec/${name}.tar.gz"; + sha256 = "0kqx33flcrrlipccmqs78d14pj5749bp85b6k5fgaq2c7yzz02jg"; + }; + + meta = { + description = "Library to simulate plate tectonics with Python bindings"; + homepage = https://github.com/Mindwerks/plate-tectonics; + license = licenses.lgpl3; + }; + }; + + purepng = buildPythonPackage rec { + name = "purepng-${version}"; + version = "0.2.0"; + + src = pkgs.fetchurl { + url = "mirror://pypi/p/purepng/${name}.tar.gz"; + sha256 = "1kcl7a6d7d59360fbz2jwfk6ha6pmqgn396962p4s62j893d2r0d"; + }; + + meta = { + description = "Pure Python library for PNG image encoding/decoding"; + homepage = https://github.com/scondo/purepng; + license = licenses.mit; + }; + }; + pymaging = buildPythonPackage rec { name = "pymaging-unstable-2016-11-16"; @@ -22347,28 +22357,7 @@ in { }; }; - qtconsole = buildPythonPackage rec { - version = "4.2.1"; - name = "qtconsole-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/q/qtconsole/${name}.tar.gz"; - sha256 = "1vqqx9hdvrg2d336wjyw0vr5b5v97kflkqqvr7ryicr8als7vv15"; - }; - - buildInputs = with self; [ nose ] ++ optionals isPy27 [mock]; - propagatedBuildInputs = with self; [traitlets jupyter_core jupyter_client pygments ipykernel pyqt4]; - - # : cannot connect to X server - doCheck = false; - - meta = { - description = "Jupyter Qt console"; - homepage = http://jupyter.org/; - license = licenses.bsd3; - maintainers = with maintainers; [ fridh ]; - }; - }; + qtconsole = callPackage ../development/python-modules/qtconsole { }; quantities = buildPythonPackage rec { name = "quantities-0.10.1"; @@ -23035,7 +23024,7 @@ in { buildInputs = with self; [ appdirs ]; meta = with pkgs.stdenv.lib; { - descriptions = "A python Lex/Yacc that works with RPython"; + description = "A python Lex/Yacc that works with RPython"; homepage = https://github.com/alex/rply; license = licenses.bsd3; maintainers = with maintainers; [ nixy ]; @@ -23169,6 +23158,8 @@ in { }; }; + typeguard = callPackage ../development/python-modules/typeguard { }; + ruamel_yaml = buildPythonPackage rec { name = "ruamel.yaml-${version}"; version = "0.13.7"; @@ -23196,7 +23187,6 @@ in { runsnakerun = buildPythonPackage rec { name = "runsnakerun-2.0.4"; - src = pkgs.fetchurl { url = "mirror://pypi/R/RunSnakeRun/RunSnakeRun-2.0.4.tar.gz"; sha256 = "61d03a13f1dcb3c1829f5a146da1fe0cc0e27947558a51e848b6d469902815ef"; @@ -25145,29 +25135,7 @@ in { }; }; - statsmodels = buildPythonPackage rec { - name = "statsmodels-${version}"; - version = "0.6.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/statsmodels/${name}.tar.gz"; - sha256 = "be4e44374aec9e848b73e5a230dee190ac0c4519e1d40f69a5813190b13ec676"; - }; - - buildInputs = with self; [ nose ]; - propagatedBuildInputs = with self; [numpy scipy pandas patsy cython matplotlib]; - - meta = { - description = "Statistical computations and models for use with SciPy"; - homepage = "https://www.github.com/statsmodels/statsmodels"; - license = licenses.bsd3; - maintainers = with maintainers; [ fridh ]; - }; - - # Many tests fail when using latest numpy and pandas. - # See also https://github.com/statsmodels/statsmodels/issues/2602 - doCheck = false; - }; + statsmodels = callPackage ../development/python-modules/statsmodels { }; python_statsd = buildPythonPackage rec { name = "python-statsd-${version}"; @@ -25596,6 +25564,22 @@ in { }; }; + terminaltables = buildPythonPackage rec { + name = "terminaltables-${version}"; + version = "3.1.0"; + + src = pkgs.fetchurl { + url = "mirror://pypi/t/terminaltables/${name}.tar.gz"; + sha256 = "f3eb0eb92e3833972ac36796293ca0906e998dc3be91fbe1f8615b331b853b81"; + }; + + meta = { + description = "Display simple tables in terminals"; + homepage = "https://github.com/Robpol86/terminaltables"; + license = licenses.mit; + }; + }; + keystoneclient = buildPythonPackage rec { name = "keystoneclient-${version}"; version = "1.8.1"; @@ -25902,7 +25886,7 @@ in { meta = { description = "Quick Response code generation for Python"; - home = "https://pypi.python.org/pypi/qrcode"; + homepage = "https://pypi.python.org/pypi/qrcode"; license = licenses.bsd3; }; }; @@ -27199,27 +27183,7 @@ EOF }; }; - widgetsnbextension = buildPythonPackage rec { - name = "widgetsnbextension-${version}"; - version = "1.2.6"; - - src = pkgs.fetchurl { - url = "mirror://pypi/w/widgetsnbextension/${name}.tar.gz"; - sha256 = "c618cfb32978c9517caf0b4ef3aec312f8dd138577745e7b0d4abfcc7315ce51"; - }; - - propagatedBuildInputs = with self; [ notebook ]; - - # No tests in archive - doCheck = false; - - meta = { - description = "IPython HTML widgets for Jupyter"; - homepage = http://ipython.org/; - license = self.ipywidgets.meta.license; # Build from same repo - maintainers = with maintainers; [ fridh ]; - }; - }; + widgetsnbextension = callPackage ../development/python-modules/widgetsnbextension { }; willie = buildPythonPackage rec { name = "willie-${version}"; @@ -27361,29 +27325,7 @@ EOF }; }); - xarray = buildPythonPackage rec { - name = "xarray-${version}"; - version = "0.9.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/x/xarray/${name}.tar.gz"; - sha256 = "89772ed0e23f0e71c3fb8323746374999ecbe79c113e3fadc7ae6374e6dc0525"; - }; - - buildInputs = with self; [ pytest ]; - propagatedBuildInputs = with self; [numpy pandas]; - - checkPhase = '' - py.test $out/${python.sitePackages} - ''; - - meta = { - description = "N-D labeled arrays and datasets in Python"; - homepage = https://github.com/pydata/xarray; - license = licenses.asl20; - maintainers = with maintainers; [ fridh ]; - }; - }; + xarray = callPackage ../development/python-modules/xarray { }; xlwt = callPackage ../development/python-modules/xlwt { }; @@ -28552,6 +28494,54 @@ EOF }; }; + worldengine = buildPythonPackage rec { + name = "worldengine-${version}"; + version = "0.19.0"; + + src = pkgs.fetchFromGitHub { + owner = "Mindwerks"; + repo = "worldengine"; + rev = "v${version}"; + sha256 = "1xrckb0dn2841gvp32n18gib14bpi77hmjw3r9jiyhg402iip7ry"; + }; + + src-data = pkgs.fetchFromGitHub { + owner = "Mindwerks"; + repo = "worldengine-data"; + rev = "029051e"; + sha256 = "06xbf8gj3ljgr11v1n8jbs2q8pdf9wz53xdgkhpm8hdnjahgdxdm"; + }; + + postUnpack = '' + ln -s ${src-data} worldengine-data + ''; + + buildInputs = with self; [ nose ]; + propagatedBuildInputs = with self; [ noise numpy pyplatec protobuf3_2 purepng argparse h5py gdal ]; + + prePatch = '' + substituteInPlace setup.py \ + --replace pypng>=0.0.18 purepng \ + --replace 'numpy>=1.9.2, <= 1.10.0.post2' 'numpy' \ + --replace 'argparse==1.2.1' 'argparse' \ + --replace 'protobuf==3.0.0a3' 'protobuf' \ + --replace 'noise==1.2.2' 'noise' \ + --replace 'PyPlatec==1.4.0' 'PyPlatec' \ + ''; + + doCheck = true; + postCheck = '' + nosetests tests + ''; + + meta = { + homepage = http://world-engine.org; + description = "World generator using simulation of plates, rain shadow, erosion, etc"; + platforms = platforms.all; + maintainers = with maintainers; [ rardiol ]; + }; + }; + carbon = buildPythonPackage rec { name = "carbon-${version}"; version = graphiteVersion; @@ -28936,8 +28926,7 @@ EOF }; propagatedBuildInputs = with self; [ cffi ]; - buildInputs = [ pkgs.libspotify ] - ++ stdenv.lib.optional stdenv.isDarwin pkgs.install_name_tool; + buildInputs = [ pkgs.libspotify ]; # python zip complains about old timestamps preConfigure = '' @@ -29243,10 +29232,10 @@ EOF # Should be bumped along with EFL! pythonefl = buildPythonPackage rec { name = "python-efl-${version}"; - version = "1.18.0"; + version = "1.19.0"; src = pkgs.fetchurl { url = "http://download.enlightenment.org/rel/bindings/python/${name}.tar.xz"; - sha256 = "0p92xsw7sh7965mb097lxy98va5xsrkxdqqaq11fhkpwqccy2l8p"; + sha256 = "105qykdd04mlyzwzyscw6mlc7ajl4wbwhq87ncy1jvw8jjh6jads"; }; preConfigure = '' @@ -29261,9 +29250,9 @@ EOF meta = { description = "Python bindings for EFL and Elementary"; homepage = http://enlightenment.org/; - maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx ]; platforms = platforms.linux; license = licenses.gpl3; + maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx ]; }; }; @@ -29957,11 +29946,6 @@ EOF export GEOS_DIR=${pkgs.geos} ''; - # The installer does not support the '--old-and-unmanageable' option - installPhase = '' - ${python.interpreter} setup.py install --prefix $out - ''; - # The 'check' target is not supported by the `setup.py` script. # TODO : do the post install checks (`cd examples && ${python.interpreter} run_all.py`) doCheck = false; @@ -31319,6 +31303,9 @@ EOF lockfile clize ]; + # zerobin doesn't have any tests, but includes a copy of cherrypy which + # can wrongly fail the check phase. + doCheck = false; meta = { description = "A client side encrypted pastebin"; homepage = "http://0bin.net/"; @@ -31932,10 +31919,10 @@ EOF packet-python = buildPythonPackage rec { name = "${pname}-${version}"; pname = "packet-python"; - version = "1.31"; + version = "1.33"; src = pkgs.fetchurl { - url = "https://pypi.python.org/packages/c3/1b/ea71ec9d6eeab92b783d23dd62e71e9296f9699bc7d457450859803929f0/${name}.tar.gz"; - sha256 = "1z1zmrajfw01jr3mafimq7dvsb1rs978zln9xfd6fbqkp3vm9hc0"; + url = "https://pypi.python.org/packages/eb/82/f0506bd964501f958ac6a37e843ccb7bd9e712732886258314d55f0ec710/packet-python-1.33.tar.gz"; + sha256 = "0bmvfmvjm8jx0y8sv0jf5mhv0h3v8idx0sc5myxs7ig200584dd3"; }; propagatedBuildInputs = with self; [ requests ]; @@ -32019,6 +32006,10 @@ EOF license = [ licenses.bsd2 licenses.asl20 ]; maintainers = with maintainers; [ bennofs ]; }; + + checkPhase = '' + py.test + ''; }; pypandoc = buildPythonPackage rec { @@ -32218,6 +32209,12 @@ EOF nitpick = callPackage ../applications/version-management/nitpick { }; + pluginbase = callPackage ../development/python-modules/pluginbase { }; + + node-semver = callPackage ../development/python-modules/node-semver { }; + + distro = callPackage ../development/python-modules/distro { }; + }); in fix' (extends overrides packages) |