commit:     d189e83751dc3b8c219b044d611f22cd6eb75f66
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 16 05:53:40 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 16 05:53:40 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d189e837

dev-python/abydos: enable py3.10, enable net tests

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/abydos/abydos-0.5.0-r1.ebuild           |  7 ++++-
 .../abydos/files/abydos-0.5.0-fix-py3.10.patch     | 33 ++++++++++++++++++++++
 2 files changed, 39 insertions(+), 1 deletion(-)

diff --git a/dev-python/abydos/abydos-0.5.0-r1.ebuild 
b/dev-python/abydos/abydos-0.5.0-r1.ebuild
index 2af57c2683f..2e016eb2bee 100644
--- a/dev-python/abydos/abydos-0.5.0-r1.ebuild
+++ b/dev-python/abydos/abydos-0.5.0-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit distutils-r1
 
@@ -17,6 +17,7 @@ KEYWORDS="amd64 x86"
 
 # Requires access to the internet
 RESTRICT="test"
+PROPERTIES="test_network"
 
 RDEPEND="
        dev-python/deprecation[${PYTHON_USEDEP}]
@@ -27,6 +28,10 @@ BDEPEND="test? (
        dev-python/nltk[${PYTHON_USEDEP}]
 )"
 
+PATCHES=(
+       "${FILESDIR}/${P}-fix-py3.10.patch"
+)
+
 distutils_enable_tests pytest
 # Extension error: You must configure the bibtex_bibfiles setting
 #distutils_enable_sphinx docs dev-python/sphinx_rtd_theme 
dev-python/sphinxcontrib-bibtex

diff --git a/dev-python/abydos/files/abydos-0.5.0-fix-py3.10.patch 
b/dev-python/abydos/files/abydos-0.5.0-fix-py3.10.patch
new file mode 100644
index 00000000000..9cdcf77f467
--- /dev/null
+++ b/dev-python/abydos/files/abydos-0.5.0-fix-py3.10.patch
@@ -0,0 +1,33 @@
+--- a/abydos/distance/_synoname.py
++++ b/abydos/distance/_synoname.py
+@@ -19,7 +19,7 @@
+ Synoname.
+ """
+
+-from collections import Iterable
++from collections.abc import Iterable
+
+ from deprecation import deprecated
+
+--- a/abydos/tokenizer/_q_grams.py
++++ b/abydos/tokenizer/_q_grams.py
+@@ -19,7 +19,7 @@
+ QGrams multi-set class
+ """
+
+-from collections import Iterable
++from collections.abc import Iterable
+
+ from ._tokenizer import _Tokenizer
+
+--- a/abydos/tokenizer/_q_skipgrams.py
++++ b/abydos/tokenizer/_q_skipgrams.py
+@@ -19,7 +19,7 @@
+ Q-Skipgrams multi-set class
+ """
+
+-from collections import Iterable
++from collections.abc import Iterable
+ from itertools import combinations
+
+ from ._tokenizer import _Tokenizer

Reply via email to