summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerion Entrup <gerion.entrup@flump.de>2019-10-17 14:09:24 +0200
committerZac Medico <zmedico@gentoo.org>2019-10-17 23:40:31 -0700
commit5ba2f99e7ba7298091d0cf557bed7d3115535ffd (patch)
tree22652b5c1b197546adbff5397a2b59ae971bd87c /dev-python/aiodns
parentdev-ruby/wisper: add 2.0.1 (diff)
downloadgentoo-5ba2f99e7ba7298091d0cf557bed7d3115535ffd.tar.gz
gentoo-5ba2f99e7ba7298091d0cf557bed7d3115535ffd.tar.bz2
gentoo-5ba2f99e7ba7298091d0cf557bed7d3115535ffd.zip
dev-python/aiodns: use correct typing distribution
With the Gentoo startfiles for Python the typing distribution for Python 3.6 and Python 3.7 is searched as external library and not as part of the standard library. Backport fix from https://github.com/saghul/aiodns/commit/281112107c742a3e24e8bce2cb09c3c4d9d01b6d Closes: https://github.com/gentoo/gentoo/pull/13324 Closes: https://bugs.gentoo.org/692720 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Gerion Entrup <gerion.entrup@flump.de> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-python/aiodns')
-rw-r--r--dev-python/aiodns/aiodns-2.0.0-r1.ebuild (renamed from dev-python/aiodns/aiodns-2.0.0.ebuild)7
1 files changed, 7 insertions, 0 deletions
diff --git a/dev-python/aiodns/aiodns-2.0.0.ebuild b/dev-python/aiodns/aiodns-2.0.0-r1.ebuild
index 7763f5b57eb9..0799c11f85d1 100644
--- a/dev-python/aiodns/aiodns-2.0.0.ebuild
+++ b/dev-python/aiodns/aiodns-2.0.0-r1.ebuild
@@ -21,6 +21,13 @@ RDEPEND=">=dev-python/pycares-3[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ #692720 apply https://github.com/saghul/aiodns/pull/73
+ sed -e 's|typing; python_version<"3.7"|typing; python_version<"3.5"|' -i setup.py || die
+}
+
python_test() {
"${EPYTHON}" tests.py -v || die
}