commit:     e6ced24d28044bfa0314af6743b3a81c1ae5bf02
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov  6 17:01:44 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov  6 17:03:02 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6ced24d

dev-python/pyre2: Enable py3.12

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

 dev-python/pyre2/pyre2-1.0.7-r1.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/dev-python/pyre2/pyre2-1.0.7-r1.ebuild 
b/dev-python/pyre2/pyre2-1.0.7-r1.ebuild
index 75ab7c25b76c..c79bf410219d 100644
--- a/dev-python/pyre2/pyre2-1.0.7-r1.ebuild
+++ b/dev-python/pyre2/pyre2-1.0.7-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
 
 inherit distutils-r1
 
@@ -31,3 +31,11 @@ RDEPEND="
 "
 
 distutils_enable_tests unittest
+
+src_prepare() {
+       # py3.12
+       # https://github.com/facebook/pyre2/pull/26
+       sed -e 's:assertRaisesRegexp:assertRaisesRegex:' \
+               -i tests/test_match.py || die
+       distutils-r1_src_prepare
+}

Reply via email to