From: Michał Górny Date: Tue, 26 May 2020 17:07:53 +0000 (+0200) Subject: dev-python/socketpool: Port to py39 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d8dcdf42484b6c45f0acacc90ac788d9c563daa4;p=gentoo.git dev-python/socketpool: Port to py39 Signed-off-by: Michał Górny --- diff --git a/dev-python/socketpool/socketpool-0.5.3-r3.ebuild b/dev-python/socketpool/socketpool-0.5.3-r3.ebuild index f0bfe38bf105..b96eb34c7eb1 100644 --- a/dev-python/socketpool/socketpool-0.5.3-r3.ebuild +++ b/dev-python/socketpool/socketpool-0.5.3-r3.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 @@ -44,6 +44,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