diff options
Diffstat (limited to 'dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild')
-rw-r--r-- | dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild index 152bc5045683..d8721618aa91 100644 --- a/dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild +++ b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild @@ -4,13 +4,19 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 DESCRIPTION="Implements CORS support for aiohttp asyncio-powered asynchronous HTTP server" -HOMEPAGE="https://github.com/aio-libs/aiohttp-cors" -SRC_URI="https://github.com/aio-libs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE=" + https://github.com/aio-libs/aiohttp-cors/ + https://pypi.org/project/aiohttp_cors/ +" +SRC_URI=" + https://github.com/aio-libs/aiohttp-cors/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="Apache-2.0" SLOT="0" @@ -36,7 +42,7 @@ PATCHES=( "${FILESDIR}/${P}-py3_11.patch" ) -src_prepare() { - sed -i -e '/^addopts=/d' setup.cfg || die - distutils-r1_src_prepare +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -o addopts= -p aiohttp -p asyncio --asyncio-mode=auto } |