7 stdenv.mkDerivation rec {
10 md5_path = "f6d33a8362dee358517d0a9e2ebdd044";
13 url = "https://src.fedoraproject.org/repo/pkgs/python-pyblock/"
14 + "${pname}-${version}.tar.bz2/${md5_path}/${pname}-${version}.tar.bz2";
15 sha256 = "f6cef88969300a6564498557eeea1d8da58acceae238077852ff261a2cb1d815";
19 sed -i -e 's|/usr/include/python|${python}/include/python|' \
20 -e 's/-Werror *//' -e 's|/usr/|'"$out"'/|' Makefile
23 buildInputs = [ python pkgs.lvm2 pkgs.dmraid ];
27 "SITELIB=$(out)/${python.sitePackages}"
31 homepage = "https://www.centos.org/docs/5/html/5.4/Technical_Notes/python-pyblock.html";
32 description = "Interface for working with block devices";
33 license = licenses.gpl2Plus;
34 broken = isPy3k; # doesn't build on python 3, 2018-04-11