From eb46cd3ab0ffbb5db0953094deb2e4bb0ace2537 Mon Sep 17 00:00:00 2001 From: Igor Sharonov Date: Tue, 23 Feb 2016 23:03:44 +0300 Subject: [PATCH] pyelftools: init at 0.23 --- pkgs/top-level/python-packages.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1a35c4935659..1ea9cd2d2ba9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16265,6 +16265,32 @@ in modules // { }; }); + pyelftools = buildPythonPackage rec { + pname = "pyelftools"; + version = "0.23"; + name = "${pname}-${version}"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/p/${pname}/${name}.tar.gz"; + sha256 = "1pi1mdzfffgl5qcz0prsa7hlbriycy7mgagi0fdrp3vf17fslmzw"; + }; + + 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 { name = "pyenchant-1.6.6";