diff options
Diffstat (limited to 'pkgs/top-level/python-packages.nix')
-rw-r--r-- | pkgs/top-level/python-packages.nix | 318 |
1 files changed, 60 insertions, 258 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 774ef2fb0fc..4ebc4f77f1e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -114,64 +114,15 @@ in { aenum = callPackage ../development/python-modules/aenum { }; - agate = buildPythonPackage rec { - name = "agate-1.2.2"; - disabled = isPy3k; - - meta = { - description = "A Python data analysis library that is optimized for humans instead of machines"; - homepage = "https://github.com/wireservice/agate"; - license = licenses.mit; - maintainers = with maintainers; [ vrthra ]; - }; - - propagatedBuildInputs = with self; [ discid six parsedatetime isodate Babel pytimeparse ]; + agate = callPackage ../development/python-modules/agate { }; - src = pkgs.fetchurl { - url = "mirror://pypi/a/agate/${name}.tar.gz"; - sha256 = "0h2w30a0zhylivz86d823a05hvg8w8p61lmm855z1wwkgml9l9d4"; - }; - }; + agate-dbf = callPackage ../development/python-modules/agate-dbf { }; phonenumbers = callPackage ../development/python-modules/phonenumbers { }; - agate-dbf = buildPythonPackage rec { - name = "agate-dbf-0.1.0"; - disabled = isPy3k; - - meta = { - description = "Adds read support for dbf files to agate"; - homepage = "https://github.com/wireservice/agate-dbf"; - license = licenses.mit; - maintainers = with maintainers; [ vrthra ]; - }; - - propagatedBuildInputs = with self; [ agate dbf dbfread ]; - - src = pkgs.fetchurl { - url = "mirror://pypi/a/agate-dbf/${name}.tar.gz"; - sha256 = "0xzz834lh4xbl342c6wmxqy7ynmsrjp42bsjahfcxhsgq33vzngz"; - }; - }; - - agate-excel = buildPythonPackage rec { - name = "agate-excel-0.1.0"; - disabled = isPy3k; + agate-excel = callPackage ../development/python-modules/agate-excel { }; - meta = { - description = "Adds read support for excel files to agate"; - homepage = "https://github.com/wireservice/agate-excel"; - license = licenses.mit; - maintainers = with maintainers; [ vrthra ]; - }; - - propagatedBuildInputs = with self; [ agate openpyxl xlrd ]; - - src = pkgs.fetchurl { - url = "mirror://pypi/a/agate-excel/${name}.tar.gz"; - sha256 = "08zvj3pwqw8zhd58iyymiwblrk92y4gl6yyrb2svb0k8za7v0hak"; - }; - }; + agate-sql = callPackage ../development/python-modules/agate-sql { }; ansicolor = buildPythonPackage rec { name = "ansicolor-${version}"; @@ -206,40 +157,9 @@ in { bugseverywhere = callPackage ../applications/version-management/bugseverywhere {}; - dbf = buildPythonPackage rec { - name = "dbf-0.94.003"; - disabled = isPy3k; + dbf = callPackage ../development/python-modules/dbf { }; - meta = { - description = "Pure python package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files"; - homepage = "https://pypi.python.org/pypi/dbf"; - license = licenses.bsd2; - maintainers = with maintainers; [ vrthra ]; - }; - - src = pkgs.fetchurl { - url = "mirror://pypi/d/dbf/${name}.tar.gz"; - sha256 = "0i2454hwg67079jb56x663wqmmwr55pcr6c76q2415185y6nhny9"; - }; - }; - - - dbfread = buildPythonPackage rec { - name = "dbfread-2.0.5"; - disabled = isPy3k; - - meta = { - description = "Read DBF Files with Python"; - homepage = "http://dbfread.readthedocs.org/"; - license = licenses.mit; - maintainers = with maintainers; [ vrthra ]; - }; - - src = pkgs.fetchurl { - url = "mirror://pypi/d/dbfread/${name}.tar.gz"; - sha256 = "0r5axq9ax0czyapm7b69krcv22r1nyb4vci7c5x8mx8pq1axim93"; - }; - }; + dbfread = callPackage ../development/python-modules/dbfread { }; dkimpy = callPackage ../development/python-modules/dkimpy { }; @@ -398,25 +318,7 @@ in { python-stdnum = callPackage ../development/python-modules/python-stdnum { }; - pytimeparse = buildPythonPackage rec { - pname = "pytimeparse"; - version = "1.1.6"; - name = "${pname}-${version}"; - - meta = { - description = "A small Python library to parse various kinds of time expressions"; - homepage = "https://github.com/wroberts/pytimeparse"; - license = licenses.mit; - maintainers = with maintainers; [ vrthra ]; - }; - - propagatedBuildInputs = with self; [ nose ]; - - src = fetchPypi { - inherit pname version; - sha256 = "0imbb68i5n5fm704gv47if1blpxd4f8g16qmp5ar07cavgh2mibl"; - }; - }; + pytimeparse = callPackage ../development/python-modules/pytimeparse { }; PyWebDAV = callPackage ../development/python-modules/pywebdav { }; @@ -1586,6 +1488,8 @@ in { }; })); + python-slugify = callPackage ../development/python-modules/python-slugify { }; + awesome-slugify = buildPythonPackage rec { name = "awesome-slugify-${version}"; version = "1.6.5"; @@ -2217,6 +2121,8 @@ in { }; }; + bibtexparser = callPackage ../development/python-modules/bibtexparser { }; + binwalk_fun = { visualizationSupport ? false, pyqtgraph ? null }: assert visualizationSupport -> pyqtgraph != null; @@ -2529,25 +2435,7 @@ in { csscompressor = callPackage ../development/python-modules/csscompressor.nix {}; - csvkit = buildPythonPackage rec { - name = "csvkit-${version}"; - version = "0.9.1"; - disabled = isPy3k; - - src = pkgs.fetchurl { - url = "mirror://pypi/c/csvkit/${name}.tar.gz"; - sha256 = "0fprr4wgp0bq8kl5qims88np11af7ahr5bxkrhfwpdgcgdjbiy4j"; - }; - - propagatedBuildInputs = with self; [ dateutil_2_2 dbf xlrd sqlalchemy openpyxl_2_2_0_b1 ]; - - meta = { - description = "A library of utilities for working with CSV, the king of tabular file formats"; - maintainers = with maintainers; [ vrthra ]; - license = licenses.mit; - homepage = "https://github.com/wireservice/csvkit"; - }; - }; + csvkit = callPackage ../development/python-modules/csvkit { }; cx_Freeze = buildPythonPackage rec { name = "cx_freeze-${version}"; @@ -2945,6 +2833,8 @@ in { }; }; + httpserver = callPackage ../development/python-modules/httpserver {}; + bleach = buildPythonPackage rec { pname = "bleach"; version = "2.0.0"; @@ -3264,6 +3154,8 @@ in { }; }; + branca = callPackage ../development/python-modules/branca { }; + bugwarrior = buildPythonPackage rec { name = "bugwarrior-${version}"; version = "1.4.0"; @@ -5083,6 +4975,8 @@ in { }; }; + PyLD = callPackage ../development/python-modules/PyLD { }; + python-jose = callPackage ../development/python-modules/python-jose {}; pyhepmc = buildPythonPackage rec { @@ -5182,6 +5076,8 @@ in { }; }; + pytest-datafiles = callPackage ../development/python-modules/pytest-datafiles { }; + pytest-django = callPackage ../development/python-modules/pytest-django { }; pytest-fixture-config = buildPythonPackage rec { @@ -5235,6 +5131,8 @@ in { }; }; + pytest-flake8 = callPackage ../development/python-modules/pytest-flake8 { }; + pytestflakes = buildPythonPackage rec { name = "pytest-flakes-${version}"; version = "1.0.1"; @@ -5261,9 +5159,9 @@ in { pytest-mock = buildPythonPackage rec { name = "${pname}-${version}"; pname = "pytest-mock"; - version = "1.2"; + version = "1.6.0"; - buildInputs = with self; [ pytest ]; + buildInputs = with self; [ pytest setuptools_scm ]; propagatedBuildInputs = with self; [ mock ]; meta = { @@ -5274,9 +5172,9 @@ in { platforms = platforms.all; }; - src = pkgs.fetchurl { - url = "mirror://pypi/p/${pname}/${name}.zip"; - sha256 = "03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp"; + src = fetchPypi { + inherit pname version; + sha256 = "07qccww4bq9jxlc0fbhlspr13kcsixchsnl8vk4wdiyvsjy7r8c3"; }; }; @@ -6010,27 +5908,6 @@ in { dateutil = callPackage ../development/python-modules/dateutil { }; - # csvkit 0.9.1 needs dateutil==2.2 - dateutil_2_2 = buildPythonPackage (rec { - name = "dateutil-2.2"; - disabled = isPy3k; - - propagatedBuildInputs = with self; [ self.six ]; - - buildInputs = [ pkgs.glibcLocales ]; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/python-dateutil/python-${name}.tar.gz"; - sha256 = "0s74ad6r789810s10dxgvaf48ni6adac2icrdad34zxygqq6bj7f"; - }; - - meta = { - description = "Powerful extensions to the standard datetime module"; - homepage = http://pypi.python.org/pypi/python-dateutil; - license = "BSD-style"; - }; - }); - # Buildbot 0.8.7p1 needs dateutil==1.5 dateutil_1_5 = buildPythonPackage (rec { name = "dateutil-1.5"; @@ -8827,6 +8704,8 @@ in { }; }; + phpserialize = callPackage ../development/python-modules/phpserialize { }; + pies = buildPythonPackage rec { name = "pies-2.6.5"; @@ -8889,23 +8768,7 @@ in { }; }; - plotly = self.buildPythonPackage rec { - name = "plotly-1.9.5"; - disabled = isPy3k; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/plotly/${name}.tar.gz"; - sha256 = "628679e880caab22e2a46273e85e1d1ce1382b631e1c7bbfe539f804c5269b21"; - }; - - propagatedBuildInputs = with self; [ self.pytz self.six self.requests ]; - - meta = { - description = "Python plotting library for collaborative, interactive, publication-quality graphs"; - homepage = https://plot.ly/python/; - license = licenses.mit; - }; - }; + plotly = callPackage ../development/python-modules/plotly { }; podcastparser = callPackage ../development/python-modules/podcastparser { }; @@ -11786,6 +11649,8 @@ in { }; }); + folium = callPackage ../development/python-modules/folium { }; + fontforge = pkgs.fontforge.override { withPython = true; inherit python; @@ -13944,6 +13809,8 @@ in { }; }); + ltc_scrypt = callPackage ../development/python-modules/ltc_scrypt/default.nix { }; + python_magic = buildPythonPackage rec { name = "python-magic-0.4.10"; @@ -14382,6 +14249,8 @@ in { }; }; + mplleaflet = callPackage ../development/python-modules/mplleaflet { }; + multidict = callPackage ../development/python-modules/multidict { }; munch = buildPythonPackage rec { @@ -16407,31 +16276,6 @@ in { doCheck = false; }; - openpyxl_2_2_0_b1 = buildPythonPackage rec { - version = "2.2.0-b1"; - name = "openpyxl-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/o/openpyxl/${name}.tar.gz"; - sha256 = "0n10pawp2558jrrmppyhkrv7889k3g4mifqj3fp68qbr20ldk51k"; - }; - - buildInputs = with self; [ pytest ]; - propagatedBuildInputs = with self; [ jdcal et_xmlfile lxml ]; - - # Tests are not included in archive. - # https://bitbucket.org/openpyxl/openpyxl/issues/610 - doCheck = false; - - meta = { - description = "A Python library to read/write Excel 2007 xlsx/xlsm files"; - homepage = https://openpyxl.readthedocs.org; - license = licenses.mit; - maintainers = with maintainers; [ lihop sjourdois ]; - platforms = platforms.all; - }; - }; - openpyxl = buildPythonPackage rec { version = "2.3.5"; name = "openpyxl-${version}"; @@ -16647,33 +16491,7 @@ in { }; - os-testr = buildPythonPackage rec { - name = "os-testr-${version}"; - version = "0.4.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/o/os-testr/${name}.tar.gz"; - sha256 = "0474z0mxb7y3vfk4s097wf1mzji5d135vh27cvlh9q17rq3x9r3w"; - }; - - patchPhase = '' - sed -i 's@python@${python.interpreter}@' .testr.conf - sed -i 's@python@${python.interpreter}@' os_testr/tests/files/testr-conf - ''; - - checkPhase = '' - export PATH=$PATH:$out/bin - ${python.interpreter} setup.py test - ''; - - propagatedBuildInputs = with self; [ pbr Babel testrepository subunit testtools ]; - buildInputs = with self; [ coverage oslosphinx oslotest testscenarios six ddt ]; - - # Requires pbr < 2 - # Or update to latest version but that requires updating the whole of openstack / oslo - meta.broken = true; - - }; + os-testr = callPackage ../development/python-modules/os-testr { }; bandit = buildPythonPackage rec { name = "bandit-${version}"; @@ -17007,6 +16825,8 @@ in { meta = with stdenv.lib; { homepage = "https://launchpad.net/python-cliff"; + # requires an update, incompatible with current dependencies (pbr) + broken = true; }; }; @@ -17100,6 +16920,9 @@ in { meta = with stdenv.lib; { description = "Python bindings to the OpenStack Images API"; homepage = "http://www.openstack.org/"; + + # requires an update, incompatible with current dependencies (pbr) + broken = true; }; }; @@ -20231,6 +20054,8 @@ in { pyopencl = callPackage ../development/python-modules/pyopencl { }; + pyproj = callPackage ../development/python-modules/pyproj { }; + pyrr = buildPythonPackage rec { name = "pyrr-${version}"; version = "0.7.2"; @@ -20780,7 +20605,7 @@ in { }; }); - pyro3 = buildPythonPackage (rec { + Pyro = buildPythonPackage (rec { name = "Pyro-3.16"; disabled = isPy3k; @@ -21918,8 +21743,10 @@ in { }; }; + requests = self.requests2; - requests = buildPythonPackage rec { + # Remove before release of 17.09 + requests_1 = buildPythonPackage rec { name = "requests-1.2.3"; disabled = !pythonOlder "3.4"; @@ -21934,7 +21761,6 @@ in { }; }; - requests2 = buildPythonPackage rec { name = "requests-${version}"; version = "2.13.0"; @@ -24756,37 +24582,7 @@ in { }; }; - - sqlalchemy_migrate_func = sqlalchemy: buildPythonPackage rec { - name = "sqlalchemy-migrate-0.10.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/sqlalchemy-migrate/${name}.tar.gz"; - sha256 = "00z0lzjs4ksr9yr31zs26csyacjvavhpz6r74xaw1r89kk75qg7q"; - }; - - buildInputs = with self; [ unittest2 scripttest pytz pylint tempest-lib mock testtools ]; - propagatedBuildInputs = with self; [ pbr tempita decorator sqlalchemy six sqlparse ]; - - checkPhase = '' - export PATH=$PATH:$out/bin - echo sqlite:///__tmp__ > test_db.cfg - # depends on ibm_db_sa - rm migrate/tests/changeset/databases/test_ibmdb2.py - # wants very old testtools - rm migrate/tests/versioning/test_schema.py - # transient failures on py27 - substituteInPlace migrate/tests/versioning/test_util.py --replace "test_load_model" "noop" - ${python.interpreter} setup.py test - ''; - - meta = { - homepage = http://code.google.com/p/sqlalchemy-migrate/; - description = "Schema migration tools for SQLAlchemy"; - }; - }; - - sqlalchemy_migrate = self.sqlalchemy_migrate_func self.sqlalchemy; + sqlalchemy_migrate = callPackage ../development/python-modules/sqlalchemy-migrate { }; sqlparse = buildPythonPackage rec { name = "sqlparse-${version}"; @@ -26046,6 +25842,7 @@ in { description = "Ultra fast memcache client written in highly optimized C++ with Python bindings"; homepage = https://github.com/esnme/ultramemcache; license = licenses.bsdOriginal; + broken = true; }; }; @@ -28721,19 +28518,24 @@ EOF grequests = buildPythonPackage rec { - name = "grequests-0.2.0"; + pname = "grequests"; + version = "0.3.0"; + name = "${pname}-${version}"; - src = pkgs.fetchurl { - url = "mirror://pypi/g/grequests/${name}.tar.gz"; + src = fetchPypi { + inherit pname version; sha256 = "0lafzax5igbh8y4x0krizr573wjsxz7bhvwygiah6qwrzv83kv5c"; }; - buildInputs = with self; [ requests gevent ]; + # No tests in archive + doCheck = false; + + propagatedBuildInputs = with self; [ requests2 gevent ]; meta = { description = "Asynchronous HTTP requests"; homepage = https://github.com/kennethreitz/grequests; - license = "bsd"; + license = with licenses; [ bsd2 ]; maintainers = with maintainers; [ matejc ]; }; }; |