mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-28 20:16:41 +03:00
python3Packages.pyelftools: 0.26 -> unstable-09-23
And fix the tests. Signed-off-by: Pamplemousse <xav.maso@gmail.com>
This commit is contained in:
parent
32762b808f
commit
af27072f1d
1 changed files with 12 additions and 9 deletions
|
@ -1,31 +1,34 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, python
|
, python
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyelftools";
|
pname = "pyelftools";
|
||||||
version = "0.26";
|
version = "unstable-2020-09-23";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "eliben";
|
||||||
sha256 = "86ac6cee19f6c945e8dedf78c6ee74f1112bd14da5a658d8c9d4103aed5756a2";
|
repo = pname;
|
||||||
|
rev = "ab84e68837113b2d700ad379d94c1dd4a73125ea";
|
||||||
|
sha256 = "sha256-O7l1kj0k8bOSOtZJVzS674oVnM+X3oP00Ybs0qjb64Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
doCheck = stdenv.is64bit;
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" test/external_tools/readelf
|
||||||
${python.interpreter} test/all_tests.py
|
${python.interpreter} test/all_tests.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Tests cannot pass against system-wide readelf
|
pythonImportsCheck = [ "elftools" ];
|
||||||
# https://github.com/eliben/pyelftools/issues/65
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A library for analyzing ELF files and DWARF debugging information";
|
description = "A library for analyzing ELF files and DWARF debugging information";
|
||||||
homepage = "https://github.com/eliben/pyelftools";
|
homepage = "https://github.com/eliben/pyelftools";
|
||||||
license = licenses.publicDomain;
|
license = licenses.publicDomain;
|
||||||
maintainers = [ maintainers.igsha ];
|
maintainers = with maintainers; [ igsha pamplemousse ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue