diff options
Diffstat (limited to 'dev-python/anyio/anyio-3.1.0.ebuild')
-rw-r--r-- | dev-python/anyio/anyio-3.1.0.ebuild | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/dev-python/anyio/anyio-3.1.0.ebuild b/dev-python/anyio/anyio-3.1.0.ebuild index 53b2893ab605..d4d7d1e46906 100644 --- a/dev-python/anyio/anyio-3.1.0.ebuild +++ b/dev-python/anyio/anyio-3.1.0.ebuild @@ -18,10 +18,6 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -# This will pull in dev-python/trio and a whole bunch of other new things -# And trio does not yet have a release compatible with python3.9. -RESTRICT="test" - RDEPEND=" >=dev-python/idna-2.8[${PYTHON_USEDEP}] >=dev-python/sniffio-1.1[${PYTHON_USEDEP}] @@ -40,3 +36,19 @@ distutils_enable_tests --install pytest distutils_enable_sphinx docs \ dev-python/sphinx_rtd_theme \ dev-python/sphinx-autodoc-typehints + +python_prepare_all() { + # This will pull in dev-python/trio and a whole bunch of other new things + # And trio does not yet have a release compatible with python3.9. + rm tests/test_taskgroups.py || die + sed -i -e '/trio/d' tests/conftest.py || die + sed -i -e 's/test_cancel_scope_in_asyncgen_fixture/_&/' \ + -e 's/test_autouse_async_fixture/_&/' \ + -e 's/test_plugin/_&/' \ + tests/test_pytest_plugin.py || die + + # skip network test + sed -i -e 's/test_getaddrinfo/_&/' tests/test_sockets.py || die + + distutils-r1_python_prepare_all +} |