From bab9b28ec22492247dbd342a3d2c185095df7855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 20 Feb 2025 05:43:05 +0100 Subject: [PATCH] dev-python/pyelftools: Bump to 0.32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/pyelftools/Manifest | 1 + dev-python/pyelftools/pyelftools-0.32.ebuild | 30 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 dev-python/pyelftools/pyelftools-0.32.ebuild diff --git a/dev-python/pyelftools/Manifest b/dev-python/pyelftools/Manifest index 8856d57cb21be..6f1368b54c33f 100644 --- a/dev-python/pyelftools/Manifest +++ b/dev-python/pyelftools/Manifest @@ -1 +1,2 @@ DIST pyelftools-0.31.gh.tar.gz 14204157 BLAKE2B 9e5a1e0a7b9292b30db7331e18c5c800f84eb087b58b266f3f23a7c9c5e7ea655f913788495e1df04e79c9f0a82789cad58ee2dcd8a0afb17e696d4c58679f33 SHA512 7f4ef37da7fda75125cb95ced2f3084848943592eff7deae7ae917508f1cd5281c96960ee3bbc6e503e71a4e2196622cd68cc67e3df1f4cd99b9b675f14fd58c +DIST pyelftools-0.32.gh.tar.gz 15168340 BLAKE2B 4763302d019acf8904b4ca4d8114eacc4c9bb9a7128f040951a190e619ba384967a0999b437e4e32135edc519ea0c0766934c6a4b2a699fd9227b4519a41685e SHA512 798da482d97bb759e9d54aa6c1be80bcfc118b7c0b2011b053564763ba3866946da8ad4b472a0b28c4e71f2b9023130ff044886f5d665d143b4922dbd87ba47e diff --git a/dev-python/pyelftools/pyelftools-0.32.ebuild b/dev-python/pyelftools/pyelftools-0.32.ebuild new file mode 100644 index 0000000000000..2fa67bde66cee --- /dev/null +++ b/dev-python/pyelftools/pyelftools-0.32.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 + +DESCRIPTION="pure-Python library for analyzing ELF files and DWARF debugging information" +HOMEPAGE=" + https://pypi.org/project/pyelftools/ + https://github.com/eliben/pyelftools/ +" +# PyPI tarball lacks some test files +SRC_URI=" + https://github.com/eliben/pyelftools/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +python_test() { + # readelf_tests often fails due to host `readelf` changing output format + "${EPYTHON}" test/run_all_unittests.py || die + "${EPYTHON}" test/run_examples_test.py || die +}