From 37f46e3c91498ede8373353ee2491fc6220a176c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 26 May 2020 20:14:59 +0200 Subject: [PATCH] dev-python/socketpool: Backport py39 to -r2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/socketpool/socketpool-0.5.3-r2.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.26.2