From e7c4273cb908079cc7b32096361d47037fe480e3 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 24 Jun 2013 09:16:04 +0200 Subject: [PATCH] python-packages: Add pyblock in version 0.52. This is needed for blivet in order to work with dmraid and lvm. Signed-off-by: aszlig --- pkgs/top-level/python-packages.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 395f20bc77d7..08d62f87055d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3445,6 +3445,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";