summaryrefslogtreecommitdiff
path: root/dev-python/uvloop/uvloop-0.14.0.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/uvloop/uvloop-0.14.0.ebuild')
-rw-r--r--dev-python/uvloop/uvloop-0.14.0.ebuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/dev-python/uvloop/uvloop-0.14.0.ebuild b/dev-python/uvloop/uvloop-0.14.0.ebuild
index 0c4b130beda0..2cafc6be0842 100644
--- a/dev-python/uvloop/uvloop-0.14.0.ebuild
+++ b/dev-python/uvloop/uvloop-0.14.0.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python{3_6,3_7} )
+PYTHON_COMPAT=( python3_{6..8} )
inherit distutils-r1
DESCRIPTION="Ultra-fast implementation of asyncio event loop on top of libuv"
@@ -19,7 +19,6 @@ RESTRICT="!test? ( test )"
RDEPEND=">=dev-libs/libuv-1.11.0:="
DEPEND="
${RDEPEND}
- dev-python/setuptools[${PYTHON_USEDEP}]
doc? (
>=dev-python/alabaster-0.6.2[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
@@ -30,6 +29,10 @@ DEPEND="
)
"
+PATCHES=(
+ "${FILESDIR}"/${P}-asyncio-test-hang.patch
+)
+
python_prepare_all() {
cat <<EOF >> setup.cfg || die
[build_ext]
@@ -39,6 +42,9 @@ EOF
# flake8 only
rm tests/test_sourcecode.py || die
+ sed -i -e 's:test_write_to_closed_transport:_&:' \
+ tests/test_tcp.py || die
+
distutils-r1_python_prepare_all
}