python312Packages.pyelftools: refactor
This commit is contained in:
@@ -4,22 +4,27 @@
|
||||
, fetchFromGitHub
|
||||
, python
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyelftools";
|
||||
version = "0.31";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "eliben";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
repo = "pyelftools";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-kX89fMXqrEvhMAAjqKHzHmrYizKBt1uCWMOJtFNNhy4=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
doCheck = stdenv.hostPlatform.system == "x86_64-linux" && stdenv.hostPlatform.isGnu;
|
||||
|
||||
checkPhase = ''
|
||||
@@ -35,10 +40,10 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for analyzing ELF files and DWARF debugging information";
|
||||
mainProgram = "readelf.py";
|
||||
homepage = "https://github.com/eliben/pyelftools";
|
||||
changelog = "https://github.com/eliben/pyelftools/blob/v${version}/CHANGES";
|
||||
license = licenses.publicDomain;
|
||||
maintainers = with maintainers; [ igsha pamplemousse ];
|
||||
mainProgram = "readelf.py";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user