commit:     ffb4893c977876ec4be9252dbf255f97d263ceb3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 14 12:48:57 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr 14 12:54:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffb4893c

dev-python/antlr4-python3-runtime: Enable py3.12

Closes: https://bugs.gentoo.org/929434
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../antlr4-python3-runtime-4.13.1.ebuild                      | 11 +++++++++--
 1 file 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}"
 }

Reply via email to