1{ lib, fetchFromGitHub, buildPythonPackage, isPyPy, isPy3k, libbfd, libopcodes }: 2 3buildPythonPackage rec { 4 name = "pybfd-0.1.1.2017-12-31"; 5 6 disabled = isPyPy || isPy3k; 7 8 src = fetchFromGitHub { 9 owner = "orivej"; 10 repo = "pybfd"; 11 rev = "a10ada53f2a79de7f62f209567806ef1e91794c7"; 12 sha256 = "0sxzhlqjyvvx1zr3qrkb57z6s3g6k3ksyn65fdm9lvl0k4dv2k9w"; 13 }; 14 15 LIBBFD_INCLUDE_DIR = "${libbfd.dev}/include"; 16 LIBBFD_LIBRARY = "${libbfd}/lib/libbfd.so"; 17 LIBOPCODES_INCLUDE_DIR = "${libopcodes.dev}/include"; 18 LIBOPCODES_LIBRARY = "${libopcodes}/lib/libopcodes.so"; 19 20 meta = { 21 homepage = https://github.com/Groundworkstech/pybfd; 22 description = "A Python interface to the GNU Binary File Descriptor (BFD) library"; 23 license = lib.licenses.gpl2; 24 platforms = lib.platforms.linux; 25 maintainers = with lib.maintainers; [ orivej ]; 26 }; 27}