1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-03-16 17:13:21 +00:00

pythonPackages.pyelftools: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 09:28:07 -04:00 committed by Frederik Rietdijk
parent 570b442fcd
commit db96b75f34
2 changed files with 32 additions and 25 deletions

View file

@ -0,0 +1,31 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, python
}:
buildPythonPackage rec {
pname = "pyelftools";
version = "0.24";
src = fetchPypi {
inherit pname version;
sha256 = "17259kf6hwwsmizr5myp9jv3k9g5i3dvmnl8m646pfd5hpb9gpg9";
};
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";
homepage = https://github.com/eliben/pyelftools;
license = licenses.publicDomain;
maintainers = [ maintainers.igsha ];
};
}

View file

@ -3301,31 +3301,7 @@ in {
pydot_ng = callPackage ../development/python-modules/pydot_ng { };
pyelftools = buildPythonPackage rec {
pname = "pyelftools";
version = "0.24";
name = "${pname}-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/p/${pname}/${name}.tar.gz";
sha256 = "17259kf6hwwsmizr5myp9jv3k9g5i3dvmnl8m646pfd5hpb9gpg9";
};
checkPhase = ''
${python.interpreter} test/all_tests.py
'';
# Tests cannot pass against system-wide readelf
# https://github.com/eliben/pyelftools/issues/65
doCheck = false;
meta = {
description = "A library for analyzing ELF files and DWARF debugging information";
homepage = https://github.com/eliben/pyelftools;
license = licenses.publicDomain;
platforms = platforms.all;
maintainers = [ maintainers.igsha ];
};
};
pyelftools = callPackage ../development/python-modules/pyelftools { };
pyenchant = buildPythonPackage rec {
name = "pyenchant-1.6.6";