Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pybfd: new package

A Python interface to the GNU Binary File Descriptor (BFD) library

https://github.com/Groundworkstech/pybfd

+34
+34
pkgs/top-level/python-packages.nix
··· 6541 }; 6542 }); 6543 6544 6545 pyblock = stdenv.mkDerivation rec { 6546 name = "pyblock-${version}";
··· 6541 }; 6542 }); 6543 6544 + pybfd = buildPythonPackage rec { 6545 + name = "pybfd-0.1.1"; 6546 + 6547 + disabled = isPyPy || isPy3k; 6548 + 6549 + src = pkgs.fetchurl { 6550 + url = "https://pypi.python.org/packages/source/p/pybfd/${name}.tar.gz"; 6551 + md5 = "79dd6e12c90ad0515d0ad7fb1bd2f571"; 6552 + }; 6553 + 6554 + preConfigure = '' 6555 + substituteInPlace setup.py \ 6556 + --replace '"/usr/include"' '"${pkgs.gdb}/include"' \ 6557 + --replace '"/usr/lib"' '"${pkgs.binutils}/lib"' 6558 + ''; 6559 + 6560 + # --old-and-unmanageable not supported by this setup.py 6561 + installPhase = '' 6562 + mkdir -p "$out/lib/${python.libPrefix}/site-packages" 6563 + 6564 + export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH" 6565 + 6566 + ${python}/bin/${python.executable} setup.py install \ 6567 + --install-lib=$out/lib/${python.libPrefix}/site-packages \ 6568 + --prefix="$out" 6569 + ''; 6570 + 6571 + meta = with stdenv.lib; { 6572 + homepage = https://github.com/Groundworkstech/pybfd; 6573 + description = "A Python interface to the GNU Binary File Descriptor (BFD) library"; 6574 + license = licenses.gplv2; 6575 + platforms = platforms.linux; 6576 + }; 6577 + }; 6578 6579 pyblock = stdenv.mkDerivation rec { 6580 name = "pyblock-${version}";