2018-10-26 14:28:07 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyelftools";
|
2019-12-19 19:31:19 +00:00
|
|
|
version = "0.26";
|
2018-10-26 14:28:07 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:19 +00:00
|
|
|
sha256 = "86ac6cee19f6c945e8dedf78c6ee74f1112bd14da5a658d8c9d4103aed5756a2";
|
2018-10-26 14:28:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} test/all_tests.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests cannot pass against system-wide readelf
|
|
|
|
# https://github.com/eliben/pyelftools/issues/65
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A library for analyzing ELF files and DWARF debugging information";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/eliben/pyelftools";
|
2018-10-26 14:28:07 +01:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
maintainers = [ maintainers.igsha ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|