python.pkgs.pybfd: move to python-modules

+26 -23
+25
pkgs/development/python-modules/pybfd/default.nix
··· 1 + { lib, buildPythonPackage, isPyPy, isPy3k, fetchurl, gdb, binutils }: 2 + 3 + buildPythonPackage rec { 4 + name = "pybfd-0.1.1"; 5 + 6 + disabled = isPyPy || isPy3k; 7 + 8 + src = fetchurl { 9 + url = "mirror://pypi/p/pybfd/${name}.tar.gz"; 10 + sha256 = "d99b32ad077e704ddddc0b488c83cae851c14919e5cbc51715d00464a1932df4"; 11 + }; 12 + 13 + preConfigure = '' 14 + substituteInPlace setup.py \ 15 + --replace '"/usr/include"' '"${gdb}/include"' \ 16 + --replace '"/usr/lib"' '"${binutils.lib}/lib"' 17 + ''; 18 + 19 + meta = { 20 + homepage = https://github.com/Groundworkstech/pybfd; 21 + description = "A Python interface to the GNU Binary File Descriptor (BFD) library"; 22 + license = lib.licenses.gpl2; 23 + platforms = lib.platforms.linux; 24 + }; 25 + }
+1 -23
pkgs/top-level/python-packages.nix
··· 15203 15203 }; 15204 15204 }); 15205 15205 15206 - pybfd = buildPythonPackage rec { 15207 - name = "pybfd-0.1.1"; 15208 - 15209 - disabled = isPyPy || isPy3k; 15210 - 15211 - src = pkgs.fetchurl { 15212 - url = "mirror://pypi/p/pybfd/${name}.tar.gz"; 15213 - sha256 = "d99b32ad077e704ddddc0b488c83cae851c14919e5cbc51715d00464a1932df4"; 15214 - }; 15215 - 15216 - preConfigure = '' 15217 - substituteInPlace setup.py \ 15218 - --replace '"/usr/include"' '"${pkgs.gdb}/include"' \ 15219 - --replace '"/usr/lib"' '"${pkgs.binutils.lib}/lib"' 15220 - ''; 15221 - 15222 - meta = { 15223 - homepage = https://github.com/Groundworkstech/pybfd; 15224 - description = "A Python interface to the GNU Binary File Descriptor (BFD) library"; 15225 - license = licenses.gpl2; 15226 - platforms = platforms.linux; 15227 - }; 15228 - }; 15206 + pybfd = callPackage ../development/python-modules/pybfd { }; 15229 15207 15230 15208 pyblock = stdenv.mkDerivation rec { 15231 15209 name = "pyblock-${version}";