Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 21 additions & 16 deletions pkgs/development/python-modules/pyelftools/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, python
, pythonOlder
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
python,
pythonOlder,
setuptools,
}:

buildPythonPackage rec {
pname = "pyelftools";
version = "0.30";
format = "setuptools";
version = "0.31";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "eliben";
repo = pname;
rev = "v${version}";
hash = "sha256-A9etnN7G24/Gu8YlV/YDpxZV+TG2eVXGx2ZjVnA9ZD4=";
repo = "pyelftools";
rev = "refs/tags/v${version}";
hash = "sha256-kX89fMXqrEvhMAAjqKHzHmrYizKBt1uCWMOJtFNNhy4=";
};

build-system = [ setuptools ];

doCheck = stdenv.hostPlatform.system == "x86_64-linux" && stdenv.hostPlatform.isGnu;

checkPhase = ''
Expand All @@ -29,16 +33,17 @@ buildPythonPackage rec {
${python.interpreter} test/run_readelf_tests.py --parallel
'';

pythonImportsCheck = [
"elftools"
];
pythonImportsCheck = [ "elftools" ];

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 ];
maintainers = with maintainers; [
igsha
pamplemousse
];
mainProgram = "readelf.py";
};
}