summaryrefslogtreecommitdiff
path: root/dev-python/antlr4-python3-runtime
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-04-14 14:48:57 +0200
committerMichał Górny <mgorny@gentoo.org>2024-04-14 14:54:31 +0200
commitffb4893c977876ec4be9252dbf255f97d263ceb3 (patch)
tree6bf9b513746829a139c66da0977596b547823433 /dev-python/antlr4-python3-runtime
parent5077f3d5cde2fdcda98b91c0a7cf309f5c8709e4 (diff)
downloadgentoo-ffb4893c977876ec4be9252dbf255f97d263ceb3.tar.gz
gentoo-ffb4893c977876ec4be9252dbf255f97d263ceb3.tar.bz2
gentoo-ffb4893c977876ec4be9252dbf255f97d263ceb3.zip
dev-python/antlr4-python3-runtime: Enable py3.12
Closes: https://bugs.gentoo.org/929434 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/antlr4-python3-runtime')
-rw-r--r--dev-python/antlr4-python3-runtime/antlr4-python3-runtime-4.13.1.ebuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/dev-python/antlr4-python3-runtime/antlr4-python3-runtime-4.13.1.ebuild b/dev-python/antlr4-python3-runtime/antlr4-python3-runtime-4.13.1.ebuild
index 31dcc7c87016..495831c62f21 100644
--- a/dev-python/antlr4-python3-runtime/antlr4-python3-runtime-4.13.1.ebuild
+++ b/dev-python/antlr4-python3-runtime/antlr4-python3-runtime-4.13.1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
@@ -25,6 +25,13 @@ LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+src_prepare() {
+ # https://github.com/antlr/antlr4/pull/4593
+ sed -i -e 's:assertEquals:assertEqual:' tests/TestIntervalSet.py || die
+
+ distutils-r1_src_prepare
+}
+
python_test() {
"${EPYTHON}" tests/run.py -v || die "Tests failed with ${EPYTHON}"
}