python312Packages.pyelftools: refactor

This commit is contained in:
Fabian Affolter
2024-04-22 14:02:16 +02:00
committed by Martin Weinelt
parent b693e0a6a9
commit 9c2d2665fe
@@ -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";
};
}