diff options
Diffstat (limited to 'pkgs/top-level/python-packages.nix')
-rw-r--r-- | pkgs/top-level/python-packages.nix | 304 |
1 files changed, 90 insertions, 214 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e16bb977fae2..add15eaae888 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -26,6 +26,7 @@ let isPy34 = python.pythonVersion == "3.4"; isPy35 = python.pythonVersion == "3.5"; isPy36 = python.pythonVersion == "3.6"; + isPy37 = python.pythonVersion == "3.7"; isPyPy = python.executable == "pypy"; isPy3k = strings.substring 0 1 python.pythonVersion == "3"; @@ -132,7 +133,7 @@ let in { - inherit python bootstrapped-pip pythonAtLeast pythonOlder isPy26 isPy27 isPy33 isPy34 isPy35 isPy36 isPyPy isPy3k buildPythonPackage buildPythonApplication; + inherit python bootstrapped-pip pythonAtLeast pythonOlder isPy26 isPy27 isPy33 isPy34 isPy35 isPy36 isPy37 isPyPy isPy3k buildPythonPackage buildPythonApplication; inherit fetchPypi callPackage; inherit hasPythonModule requiredPythonModules makePythonPath disabledIf; inherit toPythonModule toPythonApplication; @@ -149,7 +150,6 @@ in { setuptools = toPythonModule (callPackage ../development/python-modules/setuptools { }); vowpalwabbit = callPackage ../development/python-modules/vowpalwabbit { - pythonPackages = self; boost = pkgs.boost160; }; @@ -195,6 +195,8 @@ in { inherit (pkgs) augeas; }; + authres = callPackage ../development/python-modules/authres { }; + autograd = callPackage ../development/python-modules/autograd { }; automat = callPackage ../development/python-modules/automat { }; @@ -233,12 +235,16 @@ in { cdecimal = callPackage ../development/python-modules/cdecimal { }; + clustershell = callPackage ../development/python-modules/clustershell { }; + dendropy = callPackage ../development/python-modules/dendropy { }; dbf = callPackage ../development/python-modules/dbf { }; dbfread = callPackage ../development/python-modules/dbfread { }; + deap = callPackage ../development/python-modules/deap { }; + dkimpy = callPackage ../development/python-modules/dkimpy { }; diff_cover = callPackage ../development/python-modules/diff_cover { }; @@ -259,8 +265,12 @@ in { distorm3 = callPackage ../development/python-modules/distorm3 { }; + dogtail = callPackage ../development/python-modules/dogtail { }; + diff-match-patch = callPackage ../development/python-modules/diff-match-patch { }; + fido2 = callPackage ../development/python-modules/fido2 { }; + globus-sdk = callPackage ../development/python-modules/globus-sdk { }; goocalendar = callPackage ../development/python-modules/goocalendar { }; @@ -289,7 +299,9 @@ in { logster = callPackage ../development/python-modules/logster { }; - mail-parser = callPackage ../development/python-modules/mail-parser { }; + mail-parser = callPackage ../development/python-modules/mail-parser { }; + + monty = callPackage ../development/python-modules/monty { }; mpi4py = callPackage ../development/python-modules/mpi4py { mpi = pkgs.openmpi; @@ -323,6 +335,8 @@ in { pdfminer = callPackage ../development/python-modules/pdfminer_six { }; + pdfx = callPackage ../development/python-modules/pdfx { }; + plantuml = callPackage ../tools/misc/plantuml { }; Pmw = callPackage ../development/python-modules/Pmw { }; @@ -359,7 +373,7 @@ in { pydocstyle = callPackage ../development/python-modules/pydocstyle { }; - pyexiv2 = disabledIf isPy3k (callPackage ../development/python-modules/pyexiv2 {}); + pyexiv2 = disabledIf isPy3k (toPythonModule (callPackage ../development/python-modules/pyexiv2 {})); py3exiv2 = callPackage ../development/python-modules/py3exiv2 { }; @@ -396,6 +410,8 @@ in { inherit (pkgs.llvmPackages) openmp; }; + pynisher = callPackage ../development/python-modules/pynisher { }; + pyparser = callPackage ../development/python-modules/pyparser { }; pyqt4 = callPackage ../development/python-modules/pyqt/4.x.nix { @@ -426,9 +442,11 @@ in { python-hosts = callPackage ../development/python-modules/python-hosts { }; - python-openid = callPackage (if isPy3k - then ../development/python-modules/python3-openid - else ../development/python-modules/python-openid) { }; + python3-openid = callPackage ../development/python-modules/python3-openid { }; + + python-periphery = callPackage ../development/python-modules/python-periphery { }; + + python-prctl = callPackage ../development/python-modules/python-prctl { }; python-sql = callPackage ../development/python-modules/python-sql { }; @@ -454,12 +472,18 @@ in { salmon-mail = callPackage ../development/python-modules/salmon-mail { }; + seekpath = callPackage ../development/python-modules/seekpath { }; + serversyncstorage = callPackage ../development/python-modules/serversyncstorage {}; simpleeval = callPackage ../development/python-modules/simpleeval { }; sip = callPackage ../development/python-modules/sip { }; + sklearn-deap = callPackage ../development/python-modules/sklearn-deap { }; + + spglib = callPackage ../development/python-modules/spglib { }; + supervise_api = callPackage ../development/python-modules/supervise_api { }; syncserver = callPackage ../development/python-modules/syncserver {}; @@ -1233,9 +1257,9 @@ in { cypari2 = callPackage ../development/python-modules/cypari2 { }; dlib = buildPythonPackage rec { - inherit (pkgs.dlib) name src nativeBuildInputs meta; + inherit (pkgs.dlib) name src nativeBuildInputs meta buildInputs; - buildInputs = pkgs.dlib.buildInputs ++ [ self.boost ]; + patches = [ ../development/python-modules/dlib/build-cores.patch ]; checkInputs = with self; [ pytest ]; }; @@ -1560,6 +1584,8 @@ in { cherrypy = callPackage ../development/python-modules/cherrypy {}; + cftime = callPackage ../development/python-modules/cftime {}; + cjson = callPackage ../development/python-modules/cjson { }; cld2-cffi = callPackage ../development/python-modules/cld2-cffi {}; @@ -1919,9 +1945,9 @@ in { }; }; - pytest = self.pytest_35; + pytest = self.pytest_36; - pytest_35 = callPackage ../development/python-modules/pytest { + pytest_36 = callPackage ../development/python-modules/pytest { hypothesis = self.hypothesis.override { # hypothesis requires pytest that causes dependency cycle doCheck = false; @@ -1930,7 +1956,7 @@ in { }; # Needed for celery - pytest_32 = self.pytest_35.overrideAttrs( oldAttrs: rec { + pytest_32 = self.pytest_36.overrideAttrs( oldAttrs: rec { version = "3.2.5"; src = oldAttrs.src.override { inherit version; @@ -2023,7 +2049,7 @@ in { meta = { description = "Complete yet simple CSS parser for Python"; license = licenses.bsd3; - homepage = http://pythonhosted.org/tinycss/; + homepage = https://pythonhosted.org/tinycss/; }; }; @@ -2112,9 +2138,6 @@ in { # Alias that we should deprecate dateutil = self.python-dateutil; - # Buildbot 0.8.7p1 needs dateutil==1.5 - dateutil_1_5 = callPackage ../development/python-modules/dateutil/1_5.nix { }; - decorator = callPackage ../development/python-modules/decorator { }; deform = callPackage ../development/python-modules/deform { }; @@ -2280,7 +2303,7 @@ in { ''; meta = { - homepage = "http://editorconfig.org"; + homepage = https://editorconfig.org; description = "EditorConfig File Locator and Interpreter for Python"; license = stdenv.lib.licenses.psfl; }; @@ -2394,22 +2417,7 @@ in { }; }; - events = buildPythonPackage rec { - name = "Events-${version}"; - version = "0.2.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/E/Events/${name}.tar.gz"; - sha256 = "0rymyfvarjdi2fdhfz2iqmp4wgd2n2sm0p2mx44c3spm7ylnqzqa"; - }; - - meta = { - homepage = "http://events.readthedocs.org"; - description = "Bringing the elegance of C# EventHanlder to Python"; - license = licenses.bsd3; - }; - }; - + events = callPackage ../development/python-modules/events { }; eyeD3 = buildPythonPackage rec { version = "0.7.8"; @@ -2601,6 +2609,8 @@ in { }; }; + python-forecastio = callPackage ../development/python-modules/python-forecastio { }; + fpdf = callPackage ../development/python-modules/fpdf { }; fpylll = callPackage ../development/python-modules/fpylll { }; @@ -2670,7 +2680,7 @@ in { }; meta = { - homepage = http://docs.python.org/3/library/functools.html; + homepage = https://docs.python.org/3/library/functools.html; }; }; @@ -3854,6 +3864,8 @@ in { phpserialize = callPackage ../development/python-modules/phpserialize { }; + plaid-python = callPackage ../development/python-modules/plaid-python { }; + plaster = callPackage ../development/python-modules/plaster {}; plaster-pastedeploy = callPackage ../development/python-modules/plaster-pastedeploy {}; @@ -5507,6 +5519,8 @@ in { }; }; + flask-caching = callPackage ../development/python-modules/flask-caching { }; + flask-common = callPackage ../development/python-modules/flask-common { }; flask-compress = callPackage ../development/python-modules/flask-compress { }; @@ -6188,6 +6202,8 @@ in { googleapis_common_protos = callPackage ../development/python-modules/googleapis_common_protos { }; + google-auth-httplib2 = callPackage ../development/python-modules/google-auth-httplib2 { }; + google_api_core = callPackage ../development/python-modules/google_api_core { }; google_api_python_client = callPackage ../development/python-modules/google-api-python-client { }; @@ -6224,36 +6240,11 @@ in { google_cloud_speech = callPackage ../development/python-modules/google_cloud_speech { }; - google_gax = callPackage ../development/python-modules/google_gax { }; - gpgme = toPythonModule (pkgs.gpgme.override { withPython=true; }); grammalecte = callPackage ../development/python-modules/grammalecte { }; - greenlet = buildPythonPackage rec { - name = "greenlet-${version}"; - version = "0.4.10"; - disabled = isPyPy; # builtin for pypy - - src = pkgs.fetchurl { - url = "mirror://pypi/g/greenlet/${name}.tar.gz"; - sha256 = "c4417624aa88380cdf0fe110a8a6e0dbcc26f80887197fe5df0427dfa348ae62"; - }; - - propagatedBuildInputs = with self; [ six ]; - - # see https://github.com/python-greenlet/greenlet/issues/85 - preCheck = '' - rm tests/test_leaks.py - ''; - - meta = { - homepage = https://pypi.python.org/pypi/greenlet; - description = "Module for lightweight in-process concurrent programming"; - license = licenses.lgpl2; - platforms = platforms.all; - }; - }; + greenlet = callPackage ../development/python-modules/greenlet { }; grib-api = disabledIf (!isPy27) (toPythonModule (pkgs.grib-api.override { @@ -6263,6 +6254,8 @@ in { grpcio = callPackage ../development/python-modules/grpcio { }; + grpcio-tools = callPackage ../development/python-modules/grpcio-tools { }; + gspread = buildPythonPackage rec { version = "0.2.3"; name = "gspread-${version}"; @@ -6311,9 +6304,6 @@ in { guessit = callPackage ../development/python-modules/guessit { }; - # used by flexget - guessit_2_0 = callPackage ../development/python-modules/guessit/2.0.nix { }; - rebulk = callPackage ../development/python-modules/rebulk { }; gunicorn = callPackage ../development/python-modules/gunicorn { }; @@ -6919,41 +6909,17 @@ in { keyring = callPackage ../development/python-modules/keyring { }; - keyutils = callPackage ../development/python-modules/keyutils { }; + keyutils = callPackage ../development/python-modules/keyutils { inherit (pkgs) keyutils; }; kiwisolver = callPackage ../development/python-modules/kiwisolver { }; + klaus = callPackage ../development/python-modules/klaus {}; + klein = callPackage ../development/python-modules/klein { }; koji = callPackage ../development/python-modules/koji { }; - kombu = buildPythonPackage rec { - name = "kombu-${version}"; - version = "4.0.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/k/kombu/${name}.tar.gz"; - sha256 = "18hiricdnbnlz6hx3hbaa4dni6npv8rbid4dhf7k02k16qm6zz6h"; - }; - - # Backport fix for python-3.6 from master (see issue https://github.com/celery/kombu/issues/675) - # TODO remove at next update - patches = [ (pkgs.fetchpatch { - url = "https://github.com/celery/kombu/commit/dc3fceff59d79ceac3f8f11a5d697beabb4b7a7f.patch"; - sha256 = "0s6gsihzjvmpffc7xrrcijw00r56yb74jg0sbjgng2v1324z1da9"; - name = "don-t-modify-dict-size-while-iterating-over-it"; - }) ]; - - buildInputs = with self; [ pytest case pytz ]; - - propagatedBuildInputs = with self; [ amqp ]; - - meta = { - description = "Messaging library for Python"; - homepage = "https://github.com/celery/kombu"; - license = licenses.bsd3; - }; - }; + kombu = callPackage ../development/python-modules/kombu { }; konfig = callPackage ../development/python-modules/konfig { }; @@ -7786,7 +7752,7 @@ in { meta = { description = "EditorConfig File Locator and Interpreter for Python"; - homepage = "http://editorconfig.org/"; + homepage = https://editorconfig.org/; license = licenses.psfl; }; }; @@ -8076,7 +8042,7 @@ in { disabled = isPy3k; src = pkgs.fetchurl { - url = http://www.blacktrash.org/hg/muttils/archive/8bb26094df06.tar.bz2; + url = https://www.blacktrash.org/hg/muttils/archive/8bb26094df06.tar.bz2; sha256 = "1a4kxa0fpgg6rdj5p4kggfn8xpniqh8v5kbiaqc6wids02m7kag6"; }; @@ -8085,7 +8051,7 @@ in { meta = { description = "Utilities for use with console mail clients, like mutt"; - homepage = http://www.blacktrash.org/hg/muttils; + homepage = https://www.blacktrash.org/hg/muttils; license = licenses.gpl2Plus; }; }); @@ -8233,7 +8199,7 @@ in { meta = { description = "Tool to measure, monitor and analyze memory behavior"; - homepage = http://pythonhosted.org/Pympler/; + homepage = https://pythonhosted.org/Pympler/; license = licenses.asl20; }; }; @@ -8275,6 +8241,8 @@ in { }; }; + monosat = disabledIf (!isPy3k) (pkgs.monosat.python { inherit buildPythonPackage; inherit (self) cython; }); + monotonic = buildPythonPackage rec { pname = "monotonic"; version = "1.3"; @@ -8717,7 +8685,7 @@ in { meta = { description = "A Python wrapper around notmuch"; - homepage = http://notmuchmail.org/; + homepage = https://notmuchmail.org/; maintainers = with maintainers; [ garbas ]; }; }; @@ -9163,7 +9131,7 @@ in { ]; meta = with stdenv.lib; { - homepage = "http://github.com/bcwaldon/warlock"; + homepage = https://github.com/bcwaldon/warlock; }; }; @@ -9986,35 +9954,8 @@ in { inherit (pkgs.xorg) libX11; }; - pkgconfig = buildPythonPackage rec { - name = "pkgconfig-${version}"; - version = "1.1.0"; - - # pypy: SyntaxError: __future__ statements must appear at beginning of file - disabled = isPyPy; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pkgconfig/${name}.tar.gz"; - sha256 = "709daaf077aa2b33bedac12706373412c3683576a43013bbaa529fc2769d80df"; - }; - - buildInputs = with self; [ nose ]; - - propagatedBuildInputs = with self; [pkgs.pkgconfig]; - - meta = { - description = "Interface Python with pkg-config"; - homepage = https://github.com/matze/pkgconfig; - license = licenses.mit; - }; - - # nosetests needs to be run explicitly. - # Note that the distributed archive does not actually contain any tests. - # https://github.com/matze/pkgconfig/issues/9 - checkPhase = '' - nosetests - ''; - + pkgconfig = callPackage ../development/python-modules/pkgconfig { + inherit (pkgs) pkgconfig; }; plumbum = callPackage ../development/python-modules/plumbum { }; @@ -10136,15 +10077,6 @@ in { psutil = callPackage ../development/python-modules/psutil { }; - psutil_1 = self.psutil.overrideAttrs (oldAttrs: rec { - name = "${oldAttrs.pname}-${version}"; - version = "1.2.1"; - src = oldAttrs.src.override { - inherit version; - sha256 = "0ibclqy6a4qmkjhlk3g8jhpvnk0v9aywknc61xm3hfi5r124m3jh"; - }; - }); - psycopg2 = buildPythonPackage rec { name = "psycopg2-2.7.1"; disabled = isPyPy; @@ -11292,7 +11224,7 @@ in { pyls-isort = callPackage ../development/python-modules/pyls-isort {}; pyudev = callPackage ../development/python-modules/pyudev { - inherit (pkgs) fetchurl systemd; + inherit (pkgs) systemd; }; pynmea2 = callPackage ../development/python-modules/pynmea2 {}; @@ -11634,7 +11566,7 @@ in { doCheck = false; meta = { - homepage = "http://github.com/mongodb/mongo-python-driver"; + homepage = https://github.com/mongodb/mongo-python-driver; license = licenses.asl20; description = "Python driver for MongoDB "; }; @@ -12136,53 +12068,9 @@ in { rjsmin = callPackage ../development/python-modules/rjsmin { }; - pysolr = buildPythonPackage rec { - name = "pysolr-${version}"; - version = "3.3.3"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pysolr/pysolr-${version}.tar.gz"; - sha256 = "1wapg9n7myn7c82r3nzs2gisfzx52nip8w2mrfy0yih1zn02mnd6"; - }; - - propagatedBuildInputs = with self; [ - requests - ]; - buildInputs = with self; [ - - ]; - - meta = with stdenv.lib; { - homepage = "http://github.com/toastdriven/pysolr/"; - }; - }; - + pysolr = callPackage ../development/python-modules/pysolr { }; - django-haystack = buildPythonPackage rec { - name = "django-haystack-${version}"; - version = "2.4.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/d/django-haystack/django-haystack-${version}.tar.gz"; - sha256 = "04cva8qg79xig4zqhb4dwkpm7734dvhzqclzvrdz70fh59ki5b4f"; - }; - - doCheck = false; # no tests in source - - buildInputs = with self; [ coverage mock nose geopy ]; - propagatedBuildInputs = with self; [ - django dateutil_1_5 whoosh pysolr elasticsearch - ]; - - patchPhase = '' - sed -i 's/geopy==/geopy>=/' setup.py - sed -i 's/whoosh==/Whoosh>=/' setup.py - ''; - - meta = with stdenv.lib; { - homepage = "http://haystacksearch.org/"; - }; - }; + django-haystack = callPackage ../development/python-modules/django-haystack { }; geoalchemy2 = buildPythonPackage rec { name = "GeoAlchemy2-${version}"; @@ -12405,7 +12293,7 @@ in { propagatedBuildInputs = with self; [ pyasn1 ]; meta = { - homepage = "http://stuvel.eu/rsa"; + homepage = https://stuvel.eu/rsa; license = licenses.asl20; description = "A pure-Python RSA implementation"; }; @@ -12884,7 +12772,7 @@ in { meta = { description = "sqlite-backed dictionary"; - homepage = "http://github.com/Yelp/sqlite3dbm"; + homepage = https://github.com/Yelp/sqlite3dbm; license = licenses.asl20; }; }; @@ -12940,6 +12828,8 @@ in { shapely = callPackage ../development/python-modules/shapely { }; + soco = callPackage ../development/python-modules/soco { }; + sopel = buildPythonPackage rec { name = "sopel-6.3.1"; @@ -13613,7 +13503,7 @@ in { doCheck = false; meta = { description = "Sphinx spelling extension"; - homepage = "http://bitbucket.org/dhellmann/sphinxcontrib-spelling"; + homepage = https://bitbucket.org/dhellmann/sphinxcontrib-spelling; maintainers = with maintainers; [ nand0p ]; license = licenses.bsd2; }; @@ -13885,7 +13775,7 @@ in { meta = { description = "Utility belt for automated testing"; - homepage = "http://falcao.it/sure/"; + homepage = https://falcao.it/sure/; license = licenses.gpl3Plus; }; }; @@ -13965,7 +13855,7 @@ in { propagatedBuildInputs = with self; [ six dateutil pytz ]; meta = { - homepage = http://github.com/ralphbean/taskw; + homepage = https://github.com/ralphbean/taskw; description = "Python bindings for your taskwarrior database"; license = licenses.gpl3Plus; platforms = platforms.all; @@ -15022,6 +14912,8 @@ EOF }; }); + xml2rfc = callPackage ../development/python-modules/xml2rfc { }; + xmltodict = callPackage ../development/python-modules/xmltodict { }; xarray = callPackage ../development/python-modules/xarray { }; @@ -15562,28 +15454,7 @@ EOF libarcus = callPackage ../development/python-modules/libarcus { }; - pybrowserid = buildPythonPackage rec { - name = "PyBrowserID-${version}"; - version = "0.9.2"; - disabled = isPy3k; # Errors in the test suite. - - src = pkgs.fetchgit { - url = https://github.com/mozilla/PyBrowserID.git; - rev = "refs/tags/${version}"; - sha256 = "0zsljr45gm8a4c0lxh6mgfc60a5fijhs4pwijb9fdkq16zw0pmf0"; - }; - - doCheck = false; # some tests use networking - - buildInputs = with self; [ mock unittest2 ]; - propagatedBuildInputs = with self; [ requests ]; - - meta = { - description = "Python library for the BrowserID Protocol"; - homepage = "https://github.com/mozilla/PyBrowserID"; - license = licenses.mpl20; - }; - }; + pybrowserid = callPackage ../development/python-modules/pybrowserid { }; pyzmq = callPackage ../development/python-modules/pyzmq { }; @@ -16206,7 +16077,7 @@ EOF ''; meta = { - homepage = http://pythonhosted.org/Logbook/; + homepage = https://pythonhosted.org/Logbook/; description = "A logging replacement for Python"; license = licenses.bsd3; }; @@ -17073,7 +16944,7 @@ EOF meta = { description = "Free console XMPP client"; - homepage = http://poez.io; + homepage = https://poez.io; license = licenses.mit; maintainers = [ maintainers.lsix ]; }; @@ -17146,7 +17017,7 @@ EOF meta = with stdenv.lib; { description = "Lightweight SOAP client (Jurko's fork)"; - homepage = "http://bitbucket.org/jurko/suds"; + homepage = https://bitbucket.org/jurko/suds; }; }; @@ -17585,7 +17456,7 @@ EOF doCheck = false; meta = { description = "A client side encrypted pastebin"; - homepage = "http://0bin.net/"; + homepage = https://0bin.net/; license = licenses.wtfpl; }; }; @@ -18175,6 +18046,11 @@ EOF gast = callPackage ../development/python-modules/gast { }; + IBMQuantumExperience = callPackage ../development/python-modules/ibmquantumexperience { }; + + qiskit = callPackage ../development/python-modules/qiskit { }; + + qasm2image = callPackage ../development/python-modules/qasm2image { }; }); in fix' (extends overrides packages) |