commit:     136810686965f8a13985479c0a0309cbc4208735
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 10 16:18:04 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jun 10 17:00:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13681068

dev-python/frozenlist: Enable py3.13

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

 dev-python/frozenlist/files/frozenlist-1.4.1-py313.patch | 13 +++++++++++++
 dev-python/frozenlist/frozenlist-1.4.1.ebuild            |  7 ++++++-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/dev-python/frozenlist/files/frozenlist-1.4.1-py313.patch 
b/dev-python/frozenlist/files/frozenlist-1.4.1-py313.patch
new file mode 100644
index 000000000000..5607461c9229
--- /dev/null
+++ b/dev-python/frozenlist/files/frozenlist-1.4.1-py313.patch
@@ -0,0 +1,13 @@
+diff --git a/tests/test_frozenlist.py b/tests/test_frozenlist.py
+index c0d91b5..b65a998 100644
+--- a/tests/test_frozenlist.py
++++ b/tests/test_frozenlist.py
+@@ -11,7 +11,7 @@ from frozenlist import FrozenList, PyFrozenList
+ class FrozenListMixin:
+     FrozenList = NotImplemented
+ 
+-    SKIP_METHODS = {"__abstractmethods__", "__slots__"}
++    SKIP_METHODS = {"__abstractmethods__", "__slots__", 
"__static_attributes__", "__firstlineno__"}
+ 
+     def test___class_getitem__(self) -> None:
+         assert self.FrozenList[str] is not None

diff --git a/dev-python/frozenlist/frozenlist-1.4.1.ebuild 
b/dev-python/frozenlist/frozenlist-1.4.1.ebuild
index 3419d9fa09a0..42b6ee7b5b7d 100644
--- a/dev-python/frozenlist/frozenlist-1.4.1.ebuild
+++ b/dev-python/frozenlist/frozenlist-1.4.1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=standalone
-PYTHON_COMPAT=( python3_{10..12} pypy3 )
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
 
 inherit distutils-r1
 
@@ -37,6 +37,11 @@ BDEPEND="
 
 distutils_enable_tests pytest
 
+PATCHES=(
+       # 
https://github.com/aio-libs/frozenlist/issues/588#issuecomment-2139078800
+       "${FILESDIR}/${P}-py313.patch"
+)
+
 python_compile() {
        # pypy is not using the C extension
        if ! use native-extensions || [[ ${EPYTHON} != python* ]]; then

Reply via email to