commit:     c11fbeacd4e2f36848249fee8efc104c9f8054b7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 15 14:16:04 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun 15 14:44:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c11fbeac

dev-python/iniparse: Enable py3.13

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/iniparse/iniparse-0.5_p20221102.ebuild | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/dev-python/iniparse/iniparse-0.5_p20221102.ebuild 
b/dev-python/iniparse/iniparse-0.5_p20221102.ebuild
index ed1508ff92c5..fdf3b827d469 100644
--- a/dev-python/iniparse/iniparse-0.5_p20221102.ebuild
+++ b/dev-python/iniparse/iniparse-0.5_p20221102.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
 
 inherit distutils-r1
 
@@ -33,10 +33,18 @@ BDEPEND="
        ${RDEPEND}
 "
 
-PATCHES=(
-       # https://github.com/candlepin/python-iniparse/pull/29
-       "${FILESDIR}/${P}-py3.11.7.patch"
-)
+src_prepare() {
+       local PATCHES=(
+               # https://github.com/candlepin/python-iniparse/pull/29
+               "${FILESDIR}/${P}-py3.11.7.patch"
+       )
+
+       distutils-r1_src_prepare
+
+       # 
https://src.fedoraproject.org/rpms/python-iniparse/blob/rawhide/f/python-iniparse.spec
+       sed -e "s/unittest.makeSuite(\(.*\), 
'test')/unittest.defaultTestLoader.loadTestsFromTestCase(\1)/g" \
+               -i tests/test*.py || die
+}
 
 python_test() {
        "${EPYTHON}" runtests.py -v || die

Reply via email to