diff options
Diffstat (limited to 'pkgs/top-level/python-packages.nix')
-rw-r--r-- | pkgs/top-level/python-packages.nix | 315 |
1 files changed, 310 insertions, 5 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 52da5007266..f0e74a0277f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -97,7 +97,7 @@ pythonPackages = python.modules // rec { }; pygtk = import ../development/python-modules/pygtk { - inherit (pkgs) fetchurl stdenv pkgconfig glib gtk; + inherit (pkgs) fetchurl stdenv pkgconfig gtk; inherit python buildPythonPackage pygobject pycairo; }; @@ -106,7 +106,7 @@ pythonPackages = python.modules // rec { # inherit (pkgs.gnome) libglade; #}; pyGtkGlade = import ../development/python-modules/pygtk { - inherit (pkgs) fetchurl stdenv pkgconfig glib gtk; + inherit (pkgs) fetchurl stdenv pkgconfig gtk; inherit (pkgs.gnome) libglade; inherit python buildPythonPackage pygobject pycairo; }; @@ -451,6 +451,44 @@ pythonPackages = python.modules // rec { }; + blivet = buildPythonPackage rec { + name = "blivet-${version}"; + version = "0.16-1"; + + src = fetchurl { + url = "https://git.fedorahosted.org/cgit/blivet.git/snapshot/" + + "${name}.tar.bz2"; + sha256 = "0gfxf86sc0mkpqjcainch6gqh3r7brgma85pbl4nfpzmylhzj5sg"; + }; + + postPatch = '' + sed -i -e '/find_library/,/find_library/ { + c libudev = "${pkgs.udev}/lib/libudev.so.1" + }' blivet/pyudev.py + sed -i -e 's|"multipath"|"${pkgs.multipath_tools}/sbin/multipath"|' \ + blivet/devicelibs/mpath.py blivet/devices.py + ''; + + propagatedBuildInputs = let + pyenable = { enablePython = true; }; + selinuxWithPython = pkgs.libselinux.override pyenable; + cryptsetupWithPython = pkgs.cryptsetup.override pyenable; + in [ + pykickstart pyparted pkgs.udev pyblock + selinuxWithPython cryptsetupWithPython + ]; + + # tests are currently _heavily_ broken upstream + doCheck = false; + + meta = { + homepage = "https://fedoraproject.org/wiki/Blivet"; + description = "Module for management of a system's storage configuration"; + license = [ "GPLv2+" "LGPLv2.1+" ]; + }; + }; + + # euca2ools (and maybe Nova) needs boto 1.9, 2.0 doesn't work. boto_1_9 = buildPythonPackage (rec { name = "boto-1.9b"; @@ -975,6 +1013,25 @@ pythonPackages = python.modules // rec { }; }; + fabric = buildPythonPackage rec { + name = "fabric-1.6.1"; + src = fetchurl { + url = https://pypi.python.org/packages/source/F/Fabric/Fabric-1.6.1.tar.gz; + sha256 = "058psbhqbfm3n214wkyfpgm069yqmdqw1hql9bac1yv9pza3bzx1"; + }; + propagatedBuildInputs = [ paramiko pycrypto ]; + buildInputs = [ fudge nose ]; + }; + + fudge = buildPythonPackage rec { + name = "fudge-0.9.4"; + src = fetchurl { + url = https://pypi.python.org/packages/source/f/fudge/fudge-0.9.4.tar.gz; + sha256 = "03sj2x6mpzm48swpa4hnn1gi6yilgniyjfg1ylz95wm1ijggi33w"; + }; + buildInputs = [ nose nosejs ]; + propagatedBuildInputs = [ sphinx ]; + }; logilab_astng = buildPythonPackage rec { name = "logilab-astng-0.24.1"; @@ -2167,6 +2224,26 @@ pythonPackages = python.modules // rec { propagatedBuildInputs = [ unittest2 ]; }; + "lxml-2.3.6" = buildPythonPackage rec { + name = "lxml-2.3.6"; + src = fetchurl { + url = "http://pypi.python.org/packages/source/l/lxml/lxml-2.3.6.tar.gz"; + md5 = "d5d886088e78b1bdbfd66d328fc2d0bc"; + }; + buildInputs = [ pkgs.libxml2 pkgs.libxslt ]; + propagatedBuildInputs = [ ]; + doCheck = false; + installCommand = '' + easy_install --always-unzip --no-deps --prefix="$out" . + ''; + + meta = { + description = "Pythonic binding for the libxml2 and libxslt libraries"; + homepage = http://codespeak.net/lxml/index.html; + license = "BSD"; + }; + }; + lxml = buildPythonPackage ( rec { name = "lxml-3.0.2"; @@ -2362,6 +2439,24 @@ pythonPackages = python.modules // rec { }); + meld3 = buildPythonPackage rec { + name = "meld3-0.6.10"; + + src = fetchurl { + url = https://pypi.python.org/packages/source/m/meld3/meld3-0.6.10.tar.gz; + md5 = "42e58624e9d427be7659d7a28e2b0b6f"; + }; + + doCheck = false; + + meta = { + description = "An HTML/XML templating engine used by supervisor"; + homepage = https://github.com/supervisor/meld3; + license = "ZPL"; + }; + }; + + memcached = buildPythonPackage rec { name = "memcached-1.48"; @@ -2718,6 +2813,15 @@ pythonPackages = python.modules // rec { propagatedBuildInputs = [ covCore nose2 ]; }); + nosejs = buildPythonPackage { + name = "nosejs-0.9.4"; + src = fetchurl { + url = https://pypi.python.org/packages/source/N/NoseJS/NoseJS-0.9.4.tar.gz; + sha256 = "0qrhkd3sga56qf6k0sqyhwfcladwi05gl6aqmr0xriiq1sgva5dy"; + }; + buildInputs = [ nose ]; + }; + notify = pkgs.stdenv.mkDerivation (rec { name = "python-notify-0.1.1"; @@ -2825,6 +2929,7 @@ pythonPackages = python.modules // rec { src = fetchgit { url = https://git.torproject.org/pluggable-transports/obfsproxy.git; rev = "3c4e843a30c430aec1de03e0e09ef654072efc03"; + sha256 = "8fd1e63a37bc42add7609d97d50ecd81da81881bcf7015a9e2958531dbf39018"; }; propagatedBuildInputs = [ pyptlib argparse twisted pycrypto ]; @@ -2899,13 +3004,35 @@ pythonPackages = python.modules // rec { }; }); + pandas = buildPythonPackage rec { + name = "pandas-0.11.0"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/p/pandas/${name}.tar.gz"; + sha256 = "1mwh783hcch6lywgjayj8aqmbfv6n8fd2qbf1xlwqk2913ad8x2d"; + }; + + buildInputs = [ nose ]; + propagatedBuildInputs = [ dateutil numpy pytz python.modules.sqlite3 ]; + + # Tests require networking to pass + doCheck = false; + + meta = { + homepage = "http://pandas.pydata.org/"; + description = "Python Data Analysis Library"; + license = stdenv.lib.licenses.bsd3; + maintainers = [ stdenv.lib.maintainers.raskin ]; + platforms = stdenv.lib.platforms.linux; + }; + }; paramiko = buildPythonPackage rec { - name = "paramiko-1.7.7.1"; + name = "paramiko-1.10"; src = fetchurl { - url = "http://www.lag.net/paramiko/download/${name}.tar.gz"; - sha256 = "1bjy4jn51c50mpq51jbwk0glzd8bxz83gxdfkr9p95dmrd17c7hh"; + url = https://pypi.python.org/packages/source/p/paramiko/paramiko-1.10.1.tar.gz; + sha256 = "1g5sbzfxdhps61z3vm30wa87m5xq1j9ar3qvgr5bz63l7nxhvb2z"; }; buildInputs = [ pycrypto ]; @@ -3321,6 +3448,10 @@ pythonPackages = python.modules // rec { md5 = "8d27f84509a96d6791a6c393ae67d7c8"; }; + preConfigure = ( if stdenv.isDarwin then '' + export DYLD_LIBRARY_PATH="${pkgs.libgit2}/lib" + '' else "" ); + propagatedBuildInputs = [ pkgs.libgit2 ]; meta = { @@ -3352,6 +3483,35 @@ pythonPackages = python.modules // rec { }); + pyblock = stdenv.mkDerivation rec { + name = "python-pyblock-${version}"; + version = "0.52-1"; + + src = fetchurl { + url = "https://git.fedorahosted.org/cgit/pyblock.git/snapshot/" + + "pyblock-${version}.tar.bz2"; + sha256 = "1jj5hd1dcr8xx00rg3jynsf4ak88wwr5id3fmb0qf6zvim1whj7l"; + }; + + postPatch = '' + sed -i -e 's|/usr/include/python|${python}/include/python|' \ + -e 's/-Werror *//' -e 's|/usr/|'"$out"'/|' Makefile + ''; + + buildInputs = [ python pkgs.lvm2 pkgs.dmraid ]; + + makeFlags = [ + "USESELINUX=0" + "SITELIB=$(out)/lib/${python.libPrefix}/site-packages" + ]; + + meta = { + description = "Interface for working with block devices"; + license = stdenv.lib.licenses.gpl2Plus; + }; + }; + + pycryptopp = buildPythonPackage (rec { name = "pycryptopp-0.5.29"; @@ -3537,6 +3697,35 @@ pythonPackages = python.modules // rec { }; + pykickstart = buildPythonPackage rec { + name = "pykickstart-${version}"; + version = "1.99.32-1"; + + src = fetchurl { + url = "https://git.fedorahosted.org/cgit/pykickstart.git/snapshot/" + + "r${version}.tar.bz2"; + sha256 = "1sq68jvc39k9wrkcc4xlabhwi8gdz019yh2k5nrl7ya35b8daqw0"; + }; + + postPatch = '' + sed -i -e "s/for tst in tstList/for tst in sorted(tstList, \ + key=lambda m: m.__name__)/" tests/baseclass.py + ''; + + propagatedBuildInputs = [ urlgrabber ]; + + checkPhase = '' + python tests/baseclass.py -vv + ''; + + meta = { + homepage = "http://fedoraproject.org/wiki/Pykickstart"; + description = "Read and write Fedora kickstart files"; + license = pkgs.lib.licenses.gpl2Plus; + }; + }; + + pyparsing = buildPythonPackage rec { name = "pyparsing-1.5.6"; @@ -3554,6 +3743,47 @@ pythonPackages = python.modules // rec { }; }; + + pyparted = buildPythonPackage rec { + name = "pyparted-${version}"; + version = "3.10"; + + src = fetchurl { + url = "https://fedorahosted.org/releases/p/y/pyparted/${name}.tar.gz"; + sha256 = "17wq4invmv1nfazaksf59ymqyvgv3i8h4q03ry2az0s9lldyg3dv"; + }; + + postPatch = '' + sed -i -e 's|/sbin/mke2fs|${pkgs.e2fsprogs}&|' tests/baseclass.py + sed -i -e ' + s|e\.path\.startswith("/tmp/temp-device-")|"temp-device-" in e.path| + ' tests/test__ped_ped.py + '' + pkgs.lib.optionalString stdenv.isi686 '' + # remove some integers in this test case which overflow on 32bit systems + sed -i -r -e '/class *UnitGetSizeTestCase/,/^$/{/[0-9]{11}/d}' \ + tests/test__ped_ped.py + ''; + + preConfigure = '' + PATH="${pkgs.parted}/sbin:$PATH" + ''; + + buildInputs = [ pkgs.pkgconfig ]; + + propagatedBuildInputs = [ pkgs.parted ]; + + checkPhase = '' + python -m unittest discover -v + ''; + + meta = { + homepage = "https://fedorahosted.org/pyparted/"; + description = "Python interface for libparted"; + license = pkgs.lib.licenses.gpl2Plus; + }; + }; + + pyptlib = buildPythonPackage (rec { name = "pyptlib-${version}"; version = "0.0.3"; @@ -3583,6 +3813,32 @@ pythonPackages = python.modules // rec { }; }); + + pyudev = buildPythonPackage rec { + name = "pyudev-${version}"; + version = "0.16.1"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/p/pyudev/${name}.tar.gz"; + md5 = "4034de584b6d9efcbfc590a047c63285"; + }; + + postPatch = '' + sed -i -e '/udev_library_name/,/^ *libudev/ { + s|CDLL([^,]*|CDLL("${pkgs.udev}/lib/libudev.so.1"|p; d + }' pyudev/_libudev.py + ''; + + propagatedBuildInputs = [ pkgs.udev ]; + + meta = { + homepage = "http://pyudev.readthedocs.org/"; + description = "Pure Python libudev binding"; + license = stdenv.lib.licenses.lgpl21Plus; + }; + }; + + pynzb = buildPythonPackage (rec { name = "pynzb-0.1.0"; @@ -4355,6 +4611,25 @@ pythonPackages = python.modules // rec { }; }; + + supervisor = buildPythonPackage rec { + name = "supervisor-3.0b2"; + + src = fetchurl { + url = https://pypi.python.org/packages/source/s/supervisor/supervisor-3.0b2.tar.gz; + md5 = "e2557853239ee69955f993091b0eddc4"; + }; + + buildInputs = [ mock ]; + propagatedBuildInputs = [ meld3 ]; + + meta = { + description = "A system for controlling process state under UNIX"; + homepage = http://supervisord.org/; + }; + }; + + sphinx = buildPythonPackage (rec { name = "Sphinx-1.1.3"; @@ -5588,6 +5863,36 @@ pythonPackages = python.modules // rec { }; + tarman = buildPythonPackage rec { + version = "0.1.1"; + name = "tarman-${version}"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/t/tarman/tarman-${version}.zip"; + sha256 = "0ppd2365hf841b58fss5pgaja0y0mwx5n0gk1p3rxx9y3r0kyfas"; + }; + + buildInputs = [ pkgs.unzip unittest2 nose mock ]; + propagatedBuildInputs = [ python.modules.curses libarchive ]; + + # two tests fail + doCheck = false; + }; + + + libarchive = buildPythonPackage rec { + version = "3.0.4-5"; + name = "libarchive-${version}"; + + src = fetchurl { + url = "http://python-libarchive.googlecode.com/files/python-libarchive-${version}.tar.gz"; + sha256 = "141yx9ym8gvybn67mw0lmgafzsd79rmd9l77lk0k6m2fzclqx1j5"; + }; + + propagatedBuildInputs = [ pkgs.libarchive ]; + }; + + pyzmq = buildPythonPackage rec { name = "pyzmq-13.0.0"; src = fetchurl { |