Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 31 lines 703 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, python 5}: 6 7buildPythonPackage rec { 8 pname = "pyelftools"; 9 version = "0.25"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "89c6da6f56280c37a5ff33468591ba9a124e17d71fe42de971818cbff46c1b24"; 14 }; 15 16 checkPhase = '' 17 ${python.interpreter} test/all_tests.py 18 ''; 19 20 # Tests cannot pass against system-wide readelf 21 # https://github.com/eliben/pyelftools/issues/65 22 doCheck = false; 23 24 meta = with stdenv.lib; { 25 description = "A library for analyzing ELF files and DWARF debugging information"; 26 homepage = https://github.com/eliben/pyelftools; 27 license = licenses.publicDomain; 28 maintainers = [ maintainers.igsha ]; 29 }; 30 31}