python.pkgs.pybfd: move to python-modules

This commit is contained in:
Orivej Desh 2017-11-19 08:28:40 +00:00
parent c1ac1256f3
commit a1573bbbb2
2 changed files with 26 additions and 23 deletions

View File

@ -0,0 +1,25 @@
{ lib, buildPythonPackage, isPyPy, isPy3k, fetchurl, gdb, binutils }:
buildPythonPackage rec {
name = "pybfd-0.1.1";
disabled = isPyPy || isPy3k;
src = fetchurl {
url = "mirror://pypi/p/pybfd/${name}.tar.gz";
sha256 = "d99b32ad077e704ddddc0b488c83cae851c14919e5cbc51715d00464a1932df4";
};
preConfigure = ''
substituteInPlace setup.py \
--replace '"/usr/include"' '"${gdb}/include"' \
--replace '"/usr/lib"' '"${binutils.lib}/lib"'
'';
meta = {
homepage = https://github.com/Groundworkstech/pybfd;
description = "A Python interface to the GNU Binary File Descriptor (BFD) library";
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
};
}

View File

@ -15203,29 +15203,7 @@ in {
};
});
pybfd = buildPythonPackage rec {
name = "pybfd-0.1.1";
disabled = isPyPy || isPy3k;
src = pkgs.fetchurl {
url = "mirror://pypi/p/pybfd/${name}.tar.gz";
sha256 = "d99b32ad077e704ddddc0b488c83cae851c14919e5cbc51715d00464a1932df4";
};
preConfigure = ''
substituteInPlace setup.py \
--replace '"/usr/include"' '"${pkgs.gdb}/include"' \
--replace '"/usr/lib"' '"${pkgs.binutils.lib}/lib"'
'';
meta = {
homepage = https://github.com/Groundworkstech/pybfd;
description = "A Python interface to the GNU Binary File Descriptor (BFD) library";
license = licenses.gpl2;
platforms = platforms.linux;
};
};
pybfd = callPackage ../development/python-modules/pybfd { };
pyblock = stdenv.mkDerivation rec {
name = "pyblock-${version}";