summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaterina Vaartis <vaartis@kotobank.ch>2021-05-14 18:12:21 +0300
committerMichał Górny <mgorny@gentoo.org>2021-05-15 13:51:30 +0200
commit49c88a839919fbe4837412bb6abf7fae8ce481ec (patch)
tree37fca5e85fa0efb1466f4578af43cf9314c5c173 /dev-python/dnspython
parentdev-python/ecdsa: Bump to python 3.10 (diff)
downloadgentoo-49c88a839919fbe4837412bb6abf7fae8ce481ec.tar.gz
gentoo-49c88a839919fbe4837412bb6abf7fae8ce481ec.tar.bz2
gentoo-49c88a839919fbe4837412bb6abf7fae8ce481ec.zip
dev-python/dnspython: bump revision of 1.16.0 to r2 for python 3.10
Signed-off-by: Ekaterina Vaartis <vaartis@kotobank.ch> Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/dnspython')
-rw-r--r--dev-python/dnspython/dnspython-1.16.0-r2.ebuild (renamed from dev-python/dnspython/dnspython-1.16.0-r1.ebuild)9
-rw-r--r--dev-python/dnspython/files/dnspython-1.16.0-py310.patch13
2 files changed, 20 insertions, 2 deletions
diff --git a/dev-python/dnspython/dnspython-1.16.0-r1.ebuild b/dev-python/dnspython/dnspython-1.16.0-r2.ebuild
index 5296e0e643fb..82f4762eb6f5 100644
--- a/dev-python/dnspython/dnspython-1.16.0-r1.ebuild
+++ b/dev-python/dnspython/dnspython-1.16.0-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
+PYTHON_COMPAT=( python3_{7..10} pypy3 )
inherit distutils-r1
@@ -23,6 +23,11 @@ RDEPEND="dev-python/pycryptodome[${PYTHON_USEDEP}]
!dev-python/dnspython:py2
!dev-python/dnspython:py3"
+PATCHES=(
+ # Mutable mapping was moved to a different module in 3.10 and removed from the old one
+ "${FILESDIR}"/${P}-py310.patch
+)
+
src_prepare() {
sed -i -e '/network_avail/s:True:False:' \
tests/test_resolver.py || die
diff --git a/dev-python/dnspython/files/dnspython-1.16.0-py310.patch b/dev-python/dnspython/files/dnspython-1.16.0-py310.patch
new file mode 100644
index 000000000000..ad6fa929e5e2
--- /dev/null
+++ b/dev-python/dnspython/files/dnspython-1.16.0-py310.patch
@@ -0,0 +1,13 @@
+diff --git a/dns/namedict.py b/dns/namedict.py
+index 37a1310..7d52668 100644
+--- a/dns/namedict.py
++++ b/dns/namedict.py
+@@ -32,7 +32,7 @@ import dns.name
+ from ._compat import xrange
+
+
+-class NameDict(collections.MutableMapping):
++class NameDict(collections.abc.MutableMapping):
+ """A dictionary whose keys are dns.name.Name objects.
+
+ In addition to being like a regular Python dictionary, this