diff options
Diffstat (limited to 'pkgs/top-level/python-packages.nix')
-rw-r--r-- | pkgs/top-level/python-packages.nix | 911 |
1 files changed, 836 insertions, 75 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cb77e11babd0..3dc6a36bb7e0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5,7 +5,7 @@ isPy26 = python.majorVersion == "2.6"; isPy27 = python.majorVersion == "2.7"; optional = pkgs.lib.optional; optionals = pkgs.lib.optionals; -modules = python.modules or { readline = null; sqlite3 = null; curses = null; ssl = null; crypt = null; }; +modules = python.modules or { readline = null; sqlite3 = null; curses = null; curses_panel = null; ssl = null; crypt = null; }; pythonPackages = modules // import ./python-packages-generated.nix { inherit pkgs python; @@ -131,6 +131,61 @@ pythonPackages = modules // import ./python-packages-generated.nix { # packages defined here + aafigure = buildPythonPackage rec { + name = "aafigure-0.5"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/a/aafigure/${name}.tar.gz"; + md5 = "5322888a21eb0bb2e749fbf98eddf574"; + }; + + propagatedBuildInputs = [ pillow ]; + + # error: invalid command 'test' + doCheck = false; + + # Fix impurity. TODO: Do the font lookup using fontconfig instead of this + # manual method. Until that is fixed, we get this whenever we run aafigure: + # WARNING: font not found, using PIL default font + patchPhase = '' + sed -i "s|/usr/share/fonts|/nonexisting-fonts-path|" aafigure/PILhelper.py + ''; + + meta = with stdenv.lib; { + description = "ASCII art to image converter"; + homepage = https://launchpad.net/aafigure/; + license = licenses.bsd2; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; + }; + + + actdiag = buildPythonPackage rec { + name = "actdiag-0.4.3"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/a/actdiag/${name}.tar.gz"; + md5 = "428aaab849f04668fa12388b964a56ea"; + }; + + buildInputs = [ pep8 nose unittest2 docutils ]; + + propagatedBuildInputs = [ blockdiag ]; + + # One test fails, because of missing simple.diag input file + doCheck = false; + + meta = with stdenv.lib; { + description = "Generate activity-diagram image from spec-text file (similar to Graphviz)"; + homepage = http://blockdiag.com/; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; + }; + + afew = buildPythonPackage rec { rev = "6bb3915636aaf86f046a017ffffd9a4ef395e199"; name = "afew-1.0_${rev}"; @@ -159,6 +214,25 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; + alembic = buildPythonPackage rec { + name = "alembic-0.6.0"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/a/alembic/${name}.tar.gz"; + md5 = "084fe81b48ebae43b0f6031af68a03d6"; + }; + + buildInputs = [ nose ]; + propagatedBuildInputs = [ Mako sqlalchemy ]; + + meta = { + homepage = http://bitbucket.org/zzzeek/alembic; + description = "A database migration tool for SQLAlchemy."; + license = stdenv.lib.licenses.mit; + }; + }; + + almir = buildPythonPackage rec { name = "almir-0.1.8"; @@ -491,6 +565,34 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; }; + + blockdiag = buildPythonPackage rec { + name = "blockdiag-1.2.4"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/b/blockdiag/${name}.tar.gz"; + md5 = "244334f60cc10b0cb73b5df5279bcdd1"; + }; + + buildInputs = [ pep8 nose unittest2 docutils ]; + + propagatedBuildInputs = [ pil webcolors funcparserlib ]; + + # One test fails: + # ... + # FAIL: test_auto_font_detection (blockdiag.tests.test_boot_params.TestBootParams) + doCheck = false; + + meta = with stdenv.lib; { + description = "Generate block-diagram image from spec-text file (similar to Graphviz)"; + homepage = http://blockdiag.com/; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; + }; + + bpython = buildPythonPackage rec { name = "bpython-0.12"; src = fetchurl { @@ -834,6 +936,29 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; }; + + ColanderAlchemy = buildPythonPackage rec { + name = "ColanderAlchemy-0.2.0"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/C/ColanderAlchemy/${name}.tar.gz"; + md5 = "b054837bd2753cbf15f7d5028cba421b"; + }; + + buildInputs = [ unittest2 ]; + propagatedBuildInputs = [ colander sqlalchemy8 ]; + + # string: argument name cannot be overridden via info kwarg. + doCheck = false; + + meta = { + description = "Autogenerate Colander schemas based on SQLAlchemy models."; + homepage = https://github.com/stefanofontanelli/ColanderAlchemy; + license = pkgs.lib.licenses.mit; + }; + }; + + configobj = buildPythonPackage (rec { name = "configobj-4.7.2"; @@ -991,10 +1116,31 @@ pythonPackages = modules // import ./python-packages-generated.nix { md5 = "18f150e7be96b5fe3c388b0e817b8087"; }; - buildInputs = [ py ]; + propagatedBuildInputs = [ pythonPackages.py ] + ++ stdenv.lib.optional + pkgs.config.pythonPackages.pytest.selenium or false + pythonPackages.selenium; + + meta = with stdenv.lib; { + maintainers = with maintainers; [ iElectric lovek323 ]; + platforms = platforms.unix; + }; + }; + + pytest_xdist = buildPythonPackage rec { + name = "pytest-xdist-1.8"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/p/pytest-xdist/pytest-xdist-1.8.zip"; + md5 = "9c0b8efe9d43b460f8cf049fa46ce14d"; + }; + + buildInputs = [ pkgs.unzip pytest ]; + propagatedBuildInputs = [ execnet ]; meta = { - maintainers = [ stdenv.lib.maintainers.iElectric ]; + description = "py.test xdist plugin for distributed testing and loop-on-failing modes"; + homepage = http://bitbucket.org/hpk42/pytest-xdist; }; }; @@ -1201,6 +1347,7 @@ pythonPackages = modules // import ./python-packages-generated.nix { homepage = http://pythonhosted.org/evdev; license = licenses.bsd3; maintainers = [ maintainers.goibhniu ]; + platforms = stdenv.lib.platforms.linux; }; }; @@ -1239,6 +1386,53 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; + execnet = buildPythonPackage rec { + name = "execnet-1.1"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/e/execnet/${name}.zip"; + md5 = "be885ccd9612966bb81839670d2da099"; + }; + + buildInputs = [ pkgs.unzip ]; + + meta = { + description = "rapid multi-Python deployment"; + license = stdenv.lib.licenses.gpl2; + }; + }; + + faker = buildPythonPackage rec { + name = "faker-0.0.4"; + src = fetchurl { + url = https://pypi.python.org/packages/source/F/Faker/Faker-0.0.4.tar.gz; + sha256 = "09q5jna3j8di0gw5yjx0dvlndkrk2x9vvqzwyfsvg3nlp8h38js1"; + }; + buildInputs = [ nose ]; + meta = with stdenv.lib; { + description = "A Python library for generating fake user data."; + homepage = http://pypi.python.org/pypi/Faker; + license = licenses.mit; + maintainers = with maintainers; [ lovek323 ]; + platforms = platforms.unix; + }; + }; + + fake_factory = buildPythonPackage rec { + name = "fake-factory-0.2"; + src = fetchurl { + url = https://pypi.python.org/packages/source/f/fake-factory/fake-factory-0.2.tar.gz; + sha256 = "0qdmk8p4anrj9mf95dh9v7bkhv1pz69hvhlw380kj4iz7b44b6zn"; + }; + meta = with stdenv.lib; { + description = "A Python package that generates fake data for you."; + homepage = https://pypi.python.org/pypi/fake-factory; + license = licenses.mit; + maintainers = with maintainers; [ lovek323 ]; + platforms = platforms.unix; + }; + }; + fabric = buildPythonPackage rec { name = "fabric-1.6.1"; src = fetchurl { @@ -1260,6 +1454,23 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; + funcparserlib = buildPythonPackage rec { + name = "funcparserlib-0.3.6"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/f/funcparserlib/${name}.tar.gz"; + md5 = "3aba546bdad5d0826596910551ce37c0"; + }; + + meta = with stdenv.lib; { + description = "Recursive descent parsing library based on functional combinators"; + homepage = https://code.google.com/p/funcparserlib/; + license = licenses.mit; + platforms = platforms.linux; + }; + }; + + googlecl = buildPythonPackage rec { version = "0.9.14"; name = "googlecl-${version}"; @@ -1280,6 +1491,21 @@ pythonPackages = modules // import ./python-packages-generated.nix { propagatedBuildInputs = [ gdata ]; }; + gtimelog = buildPythonPackage rec { + name = "gtimelog-0.8.1"; + src = fetchurl { + url = https://launchpad.net/gtimelog/devel/0.8.1/+download/gtimelog-0.8.1.tar.gz; + sha256 = "010sbw4rmslf5ifg9bgicn0f6mgsy76v8218xi0jndi9z6pva7y6"; + }; + propagatedBuildInputs = [ pygtk ]; + meta = with stdenv.lib; { + description = "A small Gtk+ app for keeping track of your time. It's main goal is to be as unintrusive as possible."; + homepage = http://mg.pov.lt/gtimelog/; + license = licenses.gpl2Plus; + maintainers = [ maintainers.ocharles ]; + platforms = platforms.unix; + }; + }; logilab_astng = buildPythonPackage rec { name = "logilab-astng-0.24.1"; @@ -1337,11 +1563,11 @@ pythonPackages = modules // import ./python-packages-generated.nix { pudb = buildPythonPackage rec { - name = "pudb-2013.1"; + name = "pudb-2013.3.6"; src = fetchurl { - url = "http://pypi.python.org/packages/source/p/pudb/${name}.tar.gz"; - md5 = "f94922aba7f862f13886457dc3fadc6a"; + url = "https://pypi.python.org/packages/source/p/pudb/${name}.tar.gz"; + md5 = "063030763bf914166a0b2bc8c011143b"; }; propagatedBuildInputs = [ pythonPackages.pygments pythonPackages.urwid ]; @@ -1467,6 +1693,24 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; + pyramid_multiauth = buildPythonPackage rec { + name = "pyramid_multiauth-${version}"; + version = "0.3.2"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/p/pyramid_multiauth/${name}.tar.gz"; + md5 = "044e423abc4fb76937ac0c21c1205e9c"; + }; + + propagatedBuildInputs = [ pyramid ]; + + meta = with stdenv.lib; { + description = "Authentication policy for Pyramid that proxies to a stack of other authentication policies"; + homepage = https://github.com/mozilla-services/pyramid_multiauth; + }; + }; + + raven = buildPythonPackage rec { name = "raven-3.4.1"; @@ -1607,6 +1851,7 @@ pythonPackages = modules // import ./python-packages-generated.nix { src = fetchgit { inherit rev; url = "https://github.com/Pylons/substanced.git"; + sha256 = "eded6468563328af37a07aeb88ef81ed78ccaff2ab687cac34ad2b36e19abcb4"; }; buildInputs = [ mock ]; @@ -2055,6 +2300,27 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; + ecdsa = buildPythonPackage rec { + name = "ecdsa-${version}"; + version = "0.10"; + + src = fetchurl { + url = "http://pypi.python.org/packages/source/e/ecdsa/${name}.tar.gz"; + md5 = "e95941b3bcbf1726472bb724d7478551"; + }; + + # Only needed for tests + buildInputs = [ pkgs.openssl ]; + + meta = { + description = "ECDSA cryptographic signature library"; + homepage = "https://github.com/warner/python-ecdsa"; + license = stdenv.lib.licenses.mit; + maintainers = [ stdenv.lib.maintainers.aszlig ]; + }; + }; + + elpy = buildPythonPackage rec { name = "elpy-1.0.1"; src = fetchurl { @@ -2189,17 +2455,18 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; }; - - flexget = buildPythonPackage (rec { - name = "FlexGet-1.0.3353"; + flexget = buildPythonPackage rec { + name = "FlexGet-1.1.121"; src = fetchurl { - url = "http://download.flexget.com/archive/${name}.tar.gz"; - md5 = "cffc4e51b5c5efddb339d265524e46b8"; + url = "https://pypi.python.org/packages/source/F/FlexGet/${name}.tar.gz"; + md5 = "44521bcbc2c1e941b656ecfa358adcaa"; }; buildInputs = [ nose ]; - propagatedBuildInputs = [ beautifulsoup4 pyrss2gen feedparser pynzb html5lib dateutil beautifulsoup flask jinja2 requests sqlalchemy pyyaml cherrypy progressbar deluge ]; + propagatedBuildInputs = [ beautifulsoup4 pyrss2gen feedparser pynzb html5lib dateutil + beautifulsoup flask jinja2 requests sqlalchemy pyyaml cherrypy progressbar deluge + python_tvrage jsonschema ]; meta = { homepage = http://flexget.com/; @@ -2207,8 +2474,51 @@ pythonPackages = modules // import ./python-packages-generated.nix { license = stdenv.lib.licenses.mit; maintainers = [ stdenv.lib.maintainers.iElectric ]; }; + }; + + python_tvrage = buildPythonPackage (rec { + version = "0.4.1"; + name = "tvrage-${version}"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/p/python-tvrage/python-tvrage-${version}.tar.gz"; + md5 = "cdfec252158c5047b626861900186dfb"; + }; + + # has mostly networking dependent tests + doCheck = false; + propagatedBuildInputs = [ beautifulsoup ]; + + meta = { + homepage = https://github.com/ckreutzer/python-tvrage; + description = "Client interface for tvrage.com's XML-based api feeds"; + license = stdenv.lib.licenses.bsd3; + maintainers = [ stdenv.lib.maintainers.iElectric ]; + }; }); + jsonschema = buildPythonPackage (rec { + version = "2.0.0"; + name = "jsonschema-${version}"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-${version}.tar.gz"; + md5 = "1793d97a668760ef540fadd342aa08e5"; + }; + + buildInputs = [ nose mock ]; + + checkPhase = '' + nosetests + ''; + + meta = { + homepage = https://github.com/Julian/jsonschema; + description = "An implementation of JSON Schema validation for Python"; + license = stdenv.lib.licenses.mit; + maintainers = [ stdenv.lib.maintainers.iElectric ]; + }; + }); flup = buildPythonPackage (rec { name = "flup-1.0.2"; @@ -2389,6 +2699,31 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; }; + glances = buildPythonPackage rec { + name = "glances-${meta.version}"; + + src = fetchurl { + url = "https://github.com/nicolargo/glances/archive/v${meta.version}.tar.gz"; + sha256 = "0g2yg9qf7qgjwv13x0rx51rzhn99pcmjpb3vk0g3gmmdsqyqi0d6"; + }; + + buildInputs = [ pkgs.hddtemp ]; + + propagatedBuildInputs = [ psutil jinja2 modules.curses modules.curses_panel]; + + doCheck = false; + + preConfigure = '' + sed -i -r -e '/data_files.append[(][(](conf|etc)_path/ietc_path="etc/glances"; conf_path="etc/glances"' setup.py; + ''; + + meta = { + version = "1.7.1"; + homepage = "http://nicolargo.github.io/glances/"; + description = "Cross-platform curses-based monitoring tool"; + }; + }; + greenlet = buildPythonPackage rec { name = "greenlet-0.3.1"; @@ -2406,24 +2741,23 @@ pythonPackages = modules // import ./python-packages-generated.nix { gyp = buildPythonPackage rec { - rev = "1635"; + rev = "1738"; name = "gyp-r${rev}"; src = fetchsvn { url = "http://gyp.googlecode.com/svn/trunk"; inherit rev; - sha256 = "1hn5gxgj2z399f71kz11m61ifds7mx4zkymnd1c87k1wyp7bs5k5"; + sha256 = "155k7v6453j2kg02xqfqbkzkbaqc8aynxs2k462jmrp638vxia9s"; }; - patches = if pkgs.stdenv.isDarwin then [ ../development/python-modules/gyp/no-xcode.patch ../development/python-modules/gyp/no-darwin-cflags.patch ] else null; - - # error: invalid command 'test' - doCheck = false; - - postUnpack = "find . -print0 | xargs -0 touch"; + patches = optionals pkgs.stdenv.isDarwin [ + ../development/python-modules/gyp/no-xcode.patch + ../development/python-modules/gyp/no-darwin-cflags.patch + ]; meta = { homepage = http://code.google.com/p/gyp; + license = stdenv.lib.licenses.bsd3; description = "Generate Your Projects"; }; }; @@ -2431,12 +2765,12 @@ pythonPackages = modules // import ./python-packages-generated.nix { hetzner = buildPythonPackage rec { name = "hetzner-${version}"; - version = "0.5.0"; + version = "0.6.0"; src = fetchurl { url = "https://github.com/RedMoonStudios/hetzner/archive/" + "v${version}.tar.gz"; - sha256 = "0i8b2nx4mf87qn4zz7kz321cl1bxlvjdwm7yh8md5hrhqbya4jw5"; + sha256 = "1cgi77f453ahw3ad6hvqwbyp6fwnh90rlzfgl9cp79wg58wyar4w"; }; # not there yet, but coming soon. @@ -2451,6 +2785,28 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; + htmllaundry = buildPythonPackage rec { + name = "htmllaundry-2.0"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/h/htmllaundry/${name}.tar.gz"; + md5 = "6db6909de76c4b259e65d90b5debdbda"; + }; + + buildInputs = [ nose ]; + propagatedBuildInputs = [ six lxml ]; + + # some tests fail, probably because of changes in lxml + # not relevant for me, if releavnt for you, fix it... + doCheck = false; + + meta = { + description = "Simple HTML cleanup utilities"; + license = stdenv.lib.licenses.bsd3; + }; + }; + + html5lib = buildPythonPackage (rec { name = "html5lib-0.95"; @@ -2553,10 +2909,10 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; ipdbplugin = buildPythonPackage { - name = "ipdbplugin-1.2"; + name = "ipdbplugin-1.4"; src = fetchurl { - url = "https://pypi.python.org/packages/source/i/ipdbplugin/ipdbplugin-1.2.tar.gz"; - md5 = "39169b00a2186b99469249c5b0613753"; + url = "https://pypi.python.org/packages/source/i/ipdbplugin/ipdbplugin-1.4.tar.gz"; + md5 = "f9a41512e5d901ea0fa199c3f648bba7"; }; propagatedBuildInputs = [ pythonPackages.nose pythonPackages.ipython ]; }; @@ -2999,6 +3355,25 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; }; + + memory_profiler = buildPythonPackage rec { + name = "memory_profiler-0.27"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/m/memory_profiler/memory_profiler-0.27.tar.gz"; + md5 = "212c0d7452dbaffb6b09474ac07b0668"; + }; + + # error: invalid command 'test' + doCheck = false; + + meta = { + description = "A module for monitoring memory usage of a python program"; + homepage = http://pypi.python.org/pypi/memory_profiler; + }; + }; + + mitmproxy = buildPythonPackage rec { baseName = "mitmproxy"; name = "${baseName}-${meta.version}"; @@ -3334,17 +3709,14 @@ pythonPackages = modules // import ./python-packages-generated.nix { }); nose = buildPythonPackage rec { - name = "nose-1.3.0"; + version = "1.3.0"; + name = "nose-${version}"; src = fetchurl { url = "http://pypi.python.org/packages/source/n/nose/${name}.tar.gz"; sha256 = "0q2j9zz39h3liwbp6lb94kl3sxb9z9rbwh5dzyccyxfy4lrwqqsf"; }; - meta = { - description = "A unittest-based testing framework for python that makes writing and running tests easier"; - }; - buildInputs = [ coverage ]; doCheck = ! stdenv.isDarwin; @@ -3353,6 +3725,10 @@ pythonPackages = modules // import ./python-packages-generated.nix { '' else "" + '' ${python}/bin/${python.executable} selftest.py ''; + + meta = { + description = "A unittest-based testing framework for python that makes writing and running tests easier"; + }; }; nose2 = if isPy26 then null else (buildPythonPackage rec { @@ -3488,6 +3864,32 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; }); + + nwdiag = buildPythonPackage rec { + name = "nwdiag-0.9.4"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/n/nwdiag/${name}.tar.gz"; + md5 = "199b22f66ec3012c3999177d376a3842"; + }; + + buildInputs = [ pep8 nose unittest2 docutils ]; + + propagatedBuildInputs = [ blockdiag ]; + + # tests fail + doCheck = false; + + meta = with stdenv.lib; { + description = "Generate network-diagram image from spec-text file (similar to Graphviz)"; + homepage = http://blockdiag.com/; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; + }; + + oauth2 = buildPythonPackage (rec { name = "oauth2-1.5.211"; @@ -3613,11 +4015,11 @@ pythonPackages = modules // import ./python-packages-generated.nix { }); pandas = buildPythonPackage rec { - name = "pandas-0.11.0"; + name = "pandas-0.12.0"; src = fetchurl { url = "https://pypi.python.org/packages/source/p/pandas/${name}.tar.gz"; - sha256 = "1mwh783hcch6lywgjayj8aqmbfv6n8fd2qbf1xlwqk2913ad8x2d"; + sha256 = "0vf865wh1kcq33189ykqgngb25nxhxxch6skfdl3c6w024v4r6xy"; }; buildInputs = [ nose ]; @@ -3636,33 +4038,29 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; paramiko = buildPythonPackage rec { - name = "paramiko-1.11.0"; + name = "paramiko-1.12.0"; src = fetchurl { url = "http://pypi.python.org/packages/source/p/paramiko/${name}.tar.gz"; - md5 = "a2c55dc04904bd08d984533703177084"; + md5 = "4187f77b1a5a313c899993930e30c321"; }; - propagatedBuildInputs = [ pycrypto ]; + propagatedBuildInputs = [ pycrypto ecdsa ]; checkPhase = "python test.py"; meta = { - homepage = "http://www.lag.net/paramiko/"; - description = "SSH2 protocol for python"; - license = "LGPL"; + homepage = "https://github.com/paramiko/paramiko/"; + description = "Native Python SSHv2 protocol library"; + license = stdenv.lib.licenses.lgpl21Plus; + maintainers = [ stdenv.lib.maintainers.aszlig ]; longDescription = '' - paramiko is a module for python 2.2 (or higher) that implements the - SSH2 protocol for secure (encrypted and authenticated) connections to - remote machines. unlike SSL (aka TLS), SSH2 protocol does not require - heirarchical certificates signed by a powerful central authority. you - may know SSH2 as the protocol that replaced telnet and rsh for secure - access to remote shells, but the protocol also includes the ability - to open arbitrary channels to remote services across the encrypted - tunnel -- this is how sftp works, for example. it is written - entirely in python (no C or platform-dependent code) and is released - under the GNU LGPL (lesser GPL). ''; + This is a library for making SSH2 connections (client or server). + Emphasis is on using SSH2 as an alternative to SSL for making secure + connections between python scripts. All major ciphers and hash methods + are supported. SFTP client and server mode are both supported too. + ''; }; }; @@ -3793,14 +4191,16 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; }; - pip = buildPythonPackage { - name = "pip-1.2.1"; + pip = buildPythonPackage rec { + version = "1.4.1"; + name = "pip-${version}"; src = fetchurl { - url = "http://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz"; - md5 = "db8a6d8a4564d3dc7f337ebed67b1a85"; + url = "http://pypi.python.org/packages/source/p/pip/pip-${version}.tar.gz"; + sha256 = "0knhj3c1nqqzxgqin8l0gzy6nzsbcxinyr0cbp1j99hi8xahcyjf"; }; buildInputs = [ mock scripttest virtualenv nose ]; # ValueError: Working directory tests not found, or not a directory + # see https://github.com/pypa/pip/issues/92 doCheck = false; }; @@ -3959,13 +4359,16 @@ pythonPackages = modules // import ./python-packages-generated.nix { psutil = buildPythonPackage rec { - name = "psutil-0.6.1"; + name = "psutil-1.0.1"; src = fetchurl { url = "http://psutil.googlecode.com/files/${name}.tar.gz"; - sha256 = "0vqarv63jqzghr4fi1fqdbvg847fq2gqdj8dzc3x59f9b36a8rfn"; + sha256 = "1zrzh7hi0f79sf9axwrw3c2kl86qs72kvx8xbbrdwlp39rfa1i1f"; }; + # failed tests: https://code.google.com/p/psutil/issues/detail?id=434 + doCheck = false; + meta = { description = "Process and system utilization information interface for python"; homepage = http://code.google.com/p/psutil/; @@ -4111,13 +4514,13 @@ pythonPackages = modules // import ./python-packages-generated.nix { pyblock = stdenv.mkDerivation rec { - name = "python-pyblock-${version}"; - version = "0.52-1"; + name = "pyblock-${version}"; + version = "0.53"; - src = fetchurl { - url = "https://git.fedorahosted.org/cgit/pyblock.git/snapshot/" - + "pyblock-${version}.tar.bz2"; - sha256 = "1jj5hd1dcr8xx00rg3jynsf4ak88wwr5id3fmb0qf6zvim1whj7l"; + src = fetchurl rec { + url = "http://pkgs.fedoraproject.org/repo/pkgs/python-pyblock/" + + "${name}.tar.bz2/${md5}/${name}.tar.bz2"; + md5 = "f6d33a8362dee358517d0a9e2ebdd044"; }; postPatch = '' @@ -4200,6 +4603,9 @@ pythonPackages = modules // import ./python-packages-generated.nix { sha256 = "0mhg7f9y5zl0m2xgz3rf1yqjd6l8n0qhfk7bpf36r44jfnhj75ld"; }; + # error: (6, "Couldn't resolve host 'h.wrttn.me'") + doCheck = false; + buildInputs = [ pkgs.curl simplejson unittest2 nose ]; meta = { @@ -4279,6 +4685,7 @@ pythonPackages = modules // import ./python-packages-generated.nix { homepage = "http://www.pyglet.org/"; description = "A cross-platform windowing and multimedia library"; license = stdenv.lib.licenses.bsd3; + platforms = stdenv.lib.platforms.mesaPlatforms; }; }; @@ -4346,12 +4753,12 @@ pythonPackages = modules // import ./python-packages-generated.nix { pykickstart = buildPythonPackage rec { name = "pykickstart-${version}"; - version = "1.99.32-1"; + version = "1.99.39"; - src = fetchurl { - url = "https://git.fedorahosted.org/cgit/pykickstart.git/snapshot/" - + "r${version}.tar.bz2"; - sha256 = "1sq68jvc39k9wrkcc4xlabhwi8gdz019yh2k5nrl7ya35b8daqw0"; + src = fetchurl rec { + url = "http://pkgs.fedoraproject.org/repo/pkgs/pykickstart/" + + "${name}.tar.gz/${md5}/${name}.tar.gz"; + md5 = "d249f60aa89b1b4facd63f776925116d"; }; postPatch = '' @@ -4446,7 +4853,8 @@ pythonPackages = modules // import ./python-packages-generated.nix { meta = { homepage = "https://fedorahosted.org/pyparted/"; description = "Python interface for libparted"; - license = pkgs.lib.licenses.gpl2Plus; + license = stdenv.lib.licenses.gpl2Plus; + platforms = stdenv.lib.platforms.linux; }; }; @@ -4502,6 +4910,7 @@ pythonPackages = modules // import ./python-packages-generated.nix { homepage = "http://pyudev.readthedocs.org/"; description = "Pure Python libudev binding"; license = stdenv.lib.licenses.lgpl21Plus; + platforms = stdenv.lib.platforms.linux; }; }; @@ -4625,6 +5034,7 @@ pythonPackages = modules // import ./python-packages-generated.nix { ''; license = "BSD-style"; + platforms = stdenv.lib.platforms.mesaPlatforms; }; }; @@ -4826,6 +5236,27 @@ pythonPackages = modules // import ./python-packages-generated.nix { }); + pywebkitgtk = stdenv.mkDerivation rec { + name = "pywebkitgtk-${version}"; + version = "1.1.8"; + + src = fetchurl { + url = "http://pywebkitgtk.googlecode.com/files/${name}.tar.bz2"; + sha256 = "1svlwyl61rvbqbcbalkg6pbf38yjyv7qkq9sx4x35yk69lscaac2"; + }; + + buildInputs = with pkgs; [ + pkgconfig python gtk2 pygtk libxml2 libxslt libsoup webkit_gtk2 icu + ]; + + meta = { + homepage = "https://code.google.com/p/pywebkitgtk/"; + description = "Python bindings for the WebKit GTK+ port"; + license = stdenv.lib.licenses.lgpl2Plus; + }; + }; + + pyxattr = buildPythonPackage (rec { name = "pyxattr-0.5.1"; @@ -4934,6 +5365,37 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; + qutip = buildPythonPackage rec { + name = "qutip-2.2.0"; + + src = fetchurl { + url = "https://qutip.googlecode.com/files/QuTiP-2.2.0.tar.gz"; + sha1 = "76ba4991322a991d580e78a197adc80d58bd5fb3"; + }; + + propagatedBuildInputs = [ numpy scipy matplotlib pkgs.pyqt4 + pkgs.cython ]; + + buildInputs = with pkgs; [ gcc qt4 blas ] ++ [ nose ]; + + meta = { + description = "QuTiP - Quantum Toolbox in Python"; + longDescription = '' + QuTiP is open-source software for simulating the dynamics of + open quantum systems. The QuTiP library depends on the + excellent Numpy and Scipy numerical packages. In addition, + graphical output is provided by Matplotlib. QuTiP aims to + provide user-friendly and efficient numerical simulations of a + wide variety of Hamiltonians, including those with arbitrary + time-dependence, commonly found in a wide range of physics + applications such as quantum optics, trapped ions, + superconducting circuits, and quantum nanomechanical + resonators. + ''; + homepage = http://qutip.org/; + }; + }; + requests_oauth2 = buildPythonPackage rec { name = "requests-oauth2-0.1.1"; @@ -5058,12 +5520,39 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; + seqdiag = buildPythonPackage rec { + name = "seqdiag-0.8.2"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/s/seqdiag/${name}.tar.gz"; + md5 = "61b3da29b5efaa89701b4db6d2d4d5fa"; + }; + + buildInputs = [ pep8 nose unittest2 docutils ]; + + propagatedBuildInputs = [ blockdiag ]; + + # Some tests fail (because of missing input files?): + # ... + # IOError: [Errno 2] No such file or directory: '/tmp/nix-build-python2.7-seqdiag-0.8.2.drv-0/seqdiag-0.8.2/src/seqdiag/tests/diagrams/separators.diag' + doCheck = false; + + meta = with stdenv.lib; { + description = "Generate sequence-diagram image from spec-text file (similar to Graphviz)"; + homepage = http://blockdiag.com/; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; + }; + + scipy = buildPythonPackage rec { - name = "scipy-0.9.0"; + name = "scipy-0.12.0"; src = fetchurl { url = "http://pypi.python.org/packages/source/s/scipy/${name}.tar.gz"; - md5 = "ebfef6e8e82d15c875a4ee6a46d4e1cd"; + md5 = "8fb4da324649f655e8557ea92b998786"; }; buildInputs = [pkgs.gfortran]; @@ -5105,10 +5594,10 @@ pythonPackages = modules // import ./python-packages-generated.nix { selenium = buildPythonPackage rec { - name = "selenium-2.25.0"; + name = "selenium-2.35.0"; src = pkgs.fetchurl { - url = http://pypi.python.org/packages/source/s/selenium/selenium-2.25.0.tar.gz; - sha256 = "0iinpry1vr4dydh44sc0ny22sa9fqhy2302hf56pf8fakvza9m0a"; + url = "http://pypi.python.org/packages/source/s/selenium/${name}.tar.gz"; + sha256 = "0c8apd538ji8kmryvcdiz0dndf33mnf8wzpp9k8zmkpmfdfcwnk0"; }; buildInputs = [pkgs.xlibs.libX11]; @@ -5126,7 +5615,11 @@ pythonPackages = modules // import ./python-packages-generated.nix { cp "${x_ignore_nofocus}/"* . sed -i 's|dlopen(library,|dlopen("libX11.so.6",|' x_ignore_nofocus.c gcc -c -fPIC x_ignore_nofocus.c -o x_ignore_nofocus.o - gcc -shared -Wl,-soname,x_ignore_nofocus.so -o x_ignore_nofocus.so x_ignore_nofocus.o + gcc -shared \ + -Wl,${if stdenv.isDarwin then "-install_name" else "-soname"},x_ignore_nofocus.so \ + -o x_ignore_nofocus.so \ + x_ignore_nofocus.o \ + ${if stdenv.isDarwin then "-lx11" else ""} cp -v x_ignore_nofocus.so py/selenium/webdriver/firefox/${if pkgs.stdenv.is64bit then "amd64" else "x86"}/ ''; }; @@ -5198,6 +5691,135 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; }); + sigal = buildPythonPackage rec { + name = "sigal-0.5.0"; + + src = fetchurl { + url = "http://pypi.python.org/packages/source/s/sigal/${name}.tar.gz"; + md5 = "93c93725674c0702583a638f5a09c9e4"; + }; + + propagatedBuildInputs = [ jinja2 markdown pillow pilkit clint argh ]; + + meta = with stdenv.lib; { + description = "Yet another simple static gallery generator"; + homepage = http://sigal.saimon.org/en/latest/index.html; + license = licenses.mit; + maintainers = [ maintainers.iElectric ]; + }; + }; + + sympy = buildPythonPackage rec { + name = "sympy-0.7.3"; + + src = fetchurl { + url = "https://github.com/sympy/sympy/releases/download/${name}/${name}.tar.gz"; + sha256 = "081g9gs2d1d41ipn8zr034d98cnrxvc4zsmihqmfwzirwzpcii5x"; + }; + + meta = with stdenv.lib; { + description = "A Python library for symbolic mathematics"; + homepage = http://www.sympy.org/; + license = "free"; + maintainers = with maintainers; [ lovek323 ]; + platforms = platforms.unix; + }; + }; + + pilkit = buildPythonPackage rec { + name = "pilkit-1.1.4"; + + src = fetchurl { + url = "http://pypi.python.org/packages/source/p/pilkit/${name}.tar.gz"; + md5 = "659dd67440f4b576889f2cd350f43d7b"; + }; + + preConfigure = '' + substituteInPlace setup.py --replace 'nose==1.2.1' 'nose' + ''; + + # tests fail, see https://github.com/matthewwithanm/pilkit/issues/9 + doCheck = false; + + buildInputs = [ pillow nose_progressive nose mock blessings ]; + + meta = with stdenv.lib; { + maintainers = [ maintainers.iElectric ]; + }; + }; + + clint = buildPythonPackage rec { + name = "clint-0.3.1"; + + src = fetchurl { + url = "http://pypi.python.org/packages/source/c/clint/${name}.tar.gz"; + md5 = "7dcd43fb08bfb84c7d63e9356ada7b73"; + }; + + checkPhase = '' + nosetests + ''; + + buildInputs = [ pillow nose_progressive nose mock blessings nose ]; + + meta = with stdenv.lib; { + maintainers = [ maintainers.iElectric ]; + }; + }; + + argh = buildPythonPackage rec { + name = "argh-0.23.3"; + + src = fetchurl { + url = "http://pypi.python.org/packages/source/a/argh/${name}.tar.gz"; + md5 = "25bb02c6552b42875f2c36714e0ff16c"; + }; + + preCheck = '' + export LANG="en_US.UTF-8" + export LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive + ''; + + buildInputs = [ pytest py mock ]; + + meta = with stdenv.lib; { + maintainers = [ maintainers.iElectric ]; + }; + }; + + nose_progressive = buildPythonPackage rec { + name = "nose-progressive-1.3"; + + src = fetchurl { + url = "http://pypi.python.org/packages/source/n/nose-progressive/${name}.tar.gz"; + md5 = "180be93929c5962044a35489f193259d"; + }; + + buildInputs = [ pillow blessings nose ]; + propagatedBuildInputs = [ modules.curses ]; + + meta = with stdenv.lib; { + maintainers = [ maintainers.iElectric ]; + }; + }; + + blessings = buildPythonPackage rec { + name = "blessings-1.5.1"; + + src = fetchurl { + url = "http://pypi.python.org/packages/source/b/blessings/${name}.tar.gz"; + md5 = "fbbddbf20b1f9a13e3fa612b1e086fd8"; + }; + + # 4 failing tests + doCheck = false; + + buildInputs = [ nose modules.curses ]; + + meta = with stdenv.lib; { + maintainers = [ maintainers.iElectric ]; + }; + }; sexpdata = buildPythonPackage rec { name = "sexpdata-0.0.2"; @@ -5337,6 +5959,44 @@ pythonPackages = modules // import ./python-packages-generated.nix { }); + sphinxcontrib_httpdomain = buildPythonPackage (rec { + name = "sphinxcontrib-httpdomain-1.1.9"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/s/sphinxcontrib-httpdomain/${name}.tar.gz"; + md5 = "0f63aea612cc9e0b55a6c39e5b0f87b7"; + }; + + propagatedBuildInputs = [sphinx]; + + meta = { + description = "Provides a Sphinx domain for describing RESTful HTTP APIs"; + + homepage = http://bitbucket.org/birkenfeld/sphinx-contrib; + + license = "BSD"; + }; + }); + + + sphinx_pypi_upload = buildPythonPackage (rec { + name = "Sphinx-PyPI-upload-0.2.1"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/S/Sphinx-PyPI-upload/${name}.tar.gz"; + md5 = "b9f1df5c8443197e4d49abbba1cfddc4"; + }; + + meta = { + description = "Setuptools command for uploading Sphinx documentation to PyPI"; + + homepage = http://bitbucket.org/jezdez/sphinx-pypi-upload/; + + license = "BSD"; + }; + }); + + sqlalchemy = buildPythonPackage rec { name = "sqlalchemy-${version}"; version = "0.7.10"; @@ -5363,6 +6023,49 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; + sqlalchemy8 = buildPythonPackage rec { + name = "SQLAlchemy-${version}"; + version = "0.8.2"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/S/SQLAlchemy/${name}.tar.gz"; + md5 = "5a33fb43dea93468dbb2a6562ee80b54"; + }; + + buildInputs = [ nose mock ]; + + propagatedBuildInputs = [ modules.sqlite3 ]; + + meta = { + homepage = http://www.sqlalchemy.org/; + description = "A Python SQL toolkit and Object Relational Mapper"; + }; + }; + + + sqlalchemy_imageattach = buildPythonPackage rec { + name = "SQLAlchemy-ImageAttach-${version}"; + version = "0.8.1"; + + src = fetchgit { + url = https://github.com/crosspop/sqlalchemy-imageattach.git; + rev = "refs/tags/${version}"; + md5 = "051dd9de0757714d33c3ecd5ab37b97d"; + }; + + buildInputs = [ pytest webob pkgs.imagemagick ]; + propagatedBuildInputs = [ sqlalchemy8 wand ]; + + checkPhase = "cd tests && LD_LIBRARY_PATH=${pkgs.imagemagick}/lib py.test"; + + meta = { + homepage = https://github.com/crosspop/sqlalchemy-imageattach; + description = "SQLAlchemy extension for attaching images to entity objects"; + license = pkgs.lib.licenses.mit; + }; + }; + + sqlalchemy_migrate = buildPythonPackage rec { name = "sqlalchemy-migrate-0.6.1"; @@ -5389,6 +6092,26 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; }; + + statd = buildPythonPackage rec { + name = "python-statsd-${version}"; + version = "1.6.0"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/p/python-statsd/${name}.tar.gz"; + md5 = "3a0c71a160b504b843703c3041c7d7fb"; + }; + + buildInputs = [ mock nose coverage ]; + + meta = { + description = "A client for Etsy's node-js statsd server"; + homepage = https://github.com/WoLpH/python-statsd; + license = pkgs.lib.licenses.bsd3; + }; + }; + + stompclient = buildPythonPackage (rec { name = "stompclient-0.3.2"; @@ -5802,6 +6525,45 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; }; + + webcolors = buildPythonPackage rec { + name = "webcolors-1.4"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/w/webcolors/${name}.tar.gz"; + md5 = "35de9d785b5c04a9cc66a2eae0519254"; + }; + + # error: invalid command 'test' + doCheck = false; + + meta = with stdenv.lib; { + description = "Library for working with color names/values defined by the HTML and CSS specifications"; + homepage = https://bitbucket.org/ubernostrum/webcolors/overview/; + license = licenses.bsd3; + platforms = platforms.linux; + }; + }; + + + wand = buildPythonPackage rec { + name = "Wand-0.3.5"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/W/Wand/${name}.tar.gz"; + md5 = "10bab03bf86ce8da2a95a3b15197ae2e"; + }; + + buildInputs = [ pkgs.imagemagick pytest psutil memory_profiler pytest_xdist ]; + + meta = { + description = "Ctypes-based simple MagickWand API binding for Python"; + homepage = http://wand-py.org/; + platforms = stdenv.lib.platforms.all; + }; + }; + + webob = buildPythonPackage rec { version = "1.2.3"; name = "webob-${version}"; @@ -7018,16 +7780,15 @@ pythonPackages = modules // import ./python-packages-generated.nix { } // pkgs.lib.optionalAttrs (python.majorVersion == "2.7") { pypi2nix = pythonPackages.buildPythonPackage rec { - rev = "e85eb9e75e7290c17e89822d6a5c1c52c1b59269"; + rev = "04a68d8577acbceb88bdf51b1231a9dbdead7003"; name = "pypi2nix-1.0_${rev}"; src = pkgs.fetchurl { url = "https://github.com/garbas/pypi2nix/tarball/${rev}"; name = "${name}.tar.bz"; - sha256 = "0wk9019pgpc2467819cz98fdvihjkpihlh1yywfxlvn04ymb315q"; + sha256 = "1fv85x2bz442iyxsvka2g75zibjcq48gp2fc7szaqcfqxq42syy9"; }; - propagatedBuildInputs = [ pythonPackages."Distutils2-1.0a4" ]; doCheck = false; meta = { |