My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyelftools/default.nix

34 lines
846 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, python
, stdenv
}:
buildPythonPackage rec {
pname = "pyelftools";
version = "0.27";
src = fetchFromGitHub {
owner = "eliben";
repo = pname;
rev = "v${version}";
sha256 = "09igdym2qj2fvfcazbz25qybmgz7ccrn25xn3havfkdkka0z0i3p";
};
doCheck = stdenv.hostPlatform.system == "x86_64-linux";
checkPhase = ''
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" test/external_tools/readelf
${python.interpreter} test/all_tests.py
'';
pythonImportsCheck = [ "elftools" ];
meta = with lib; {
description = "Python library for analyzing ELF files and DWARF debugging information";
homepage = "https://github.com/eliben/pyelftools";
license = licenses.publicDomain;
maintainers = with maintainers; [ igsha pamplemousse ];
};
}