From: Michał Górny Date: Tue, 26 May 2020 18:14:59 +0000 (+0200) Subject: dev-python/socketpool: Backport py39 to -r2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37f46e3c91498ede8373353ee2491fc6220a176c;p=gentoo.git dev-python/socketpool: Backport py39 to -r2 Signed-off-by: Michał Górny --- diff --git a/dev-python/socketpool/socketpool-0.5.3-r2.ebuild b/dev-python/socketpool/socketpool-0.5.3-r2.ebuild index c1a63b20d0a7..e0fffe7af7ae 100644 --- a/dev-python/socketpool/socketpool-0.5.3-r2.ebuild +++ b/dev-python/socketpool/socketpool-0.5.3-r2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 @@ -36,6 +36,13 @@ PATCHES=( "${FILESDIR}"/${PN}-0.5.2-locale.patch ) distutils_enable_tests pytest +src_prepare() { + # py3.9 + sed -i -e 's:isAlive:is_alive:' socketpool/backend_thread.py || die + + distutils-r1_src_prepare +} + python_test() { cp -r examples tests "${BUILD_DIR}" || die