Skip to content

Commit

Permalink
python.pkgs.pybfd: move to python-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
orivej committed Nov 19, 2017
1 parent c1ac125 commit a1573bb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
25 changes: 25 additions & 0 deletions pkgs/development/python-modules/pybfd/default.nix
@@ -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;
};
}
24 changes: 1 addition & 23 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -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}";
Expand Down

0 comments on commit a1573bb

Please sign in to comment.