diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-13 12:04:20 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-13 12:04:20 +0100 |
commit | d993571e2ee444d08f4e9e90d493ee37338657e3 (patch) | |
tree | 5a49a1d4ceffe800051e363f64571c3b6735d2f7 /dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild | |
parent | 266d65d0cceeb55ab2cc3bf4e465d7f35502a900 (diff) |
gentoo auto-resync : 13:04:2024 - 12:04:19
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 | 23 |
1 files changed, 15 insertions, 8 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 b9f9a8493b93..3b66370dac42 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 @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -34,13 +34,20 @@ BDEPEND=" distutils_enable_tests pytest -PATCHES=( - # https://github.com/aio-libs/aiohttp-cors/pull/278 - "${FILESDIR}/${P}-tests.patch" - "${FILESDIR}/${P}-py3_7.patch" - # https://github.com/aio-libs/aiohttp-cors/pull/412 - "${FILESDIR}/${P}-py3_11.patch" -) +src_prepare() { + local PATCHES=( + # https://github.com/aio-libs/aiohttp-cors/pull/278 + "${FILESDIR}/${P}-tests.patch" + "${FILESDIR}/${P}-py3_7.patch" + # https://github.com/aio-libs/aiohttp-cors/pull/412 + "${FILESDIR}/${P}-py3_11.patch" + ) + + # doesn't do anything, except for breaking pytest-8 + rm conftest.py || die + + distutils-r1_src_prepare +} python_test() { local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |