commit: 2fd4b57417a4c577b26387789bca1ad866b48279
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 4 15:20:24 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 4 18:03:06 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fd4b574
dev-python/yappi: Enable py3.12
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/yappi/yappi-1.4.0.ebuild | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dev-python/yappi/yappi-1.4.0.ebuild
b/dev-python/yappi/yappi-1.4.0.ebuild
index 419c6f5dda73..552b6d3f1e05 100644
--- a/dev-python/yappi/yappi-1.4.0.ebuild
+++ b/dev-python/yappi/yappi-1.4.0.ebuild
@@ -5,7 +5,7 @@ EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
@@ -29,6 +29,13 @@ PATCHES=(
"${FILESDIR}/yappi-1.2.5-warnings.patch"
)
+src_prepare() {
+ # using new API makes sense for versions newer than 3.11 too, sigh...
+ # https://github.com/sumerc/yappi/pull/148
+ sed -i -e 's:== 11:>= 11:' yappi/_yappi.c || die
+ distutils-r1_src_prepare
+}
+
python_test() {
local -x PYTHONPATH=tests
eunittest