pythonPackages.pyelftools: refactor move to python-modules
This commit is contained in:
parent
570b442fcd
commit
db96b75f34
31
pkgs/development/python-modules/pyelftools/default.nix
Normal file
31
pkgs/development/python-modules/pyelftools/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3301,31 +3301,7 @@ in {
|
|||||||
|
|
||||||
pydot_ng = callPackage ../development/python-modules/pydot_ng { };
|
pydot_ng = callPackage ../development/python-modules/pydot_ng { };
|
||||||
|
|
||||||
pyelftools = buildPythonPackage rec {
|
pyelftools = callPackage ../development/python-modules/pyelftools { };
|
||||||
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 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pyenchant = buildPythonPackage rec {
|
pyenchant = buildPythonPackage rec {
|
||||||
name = "pyenchant-1.6.6";
|
name = "pyenchant-1.6.6";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user