1 |
commit: 229334c70d360743702f294e472d3231b1144ca1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 10:21:45 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 10:26:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=229334c7 |
7 |
|
8 |
dev-python/aiohttp-cors: EAPI 8, PEP517 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild | 40 ++++++++++++++++++++++ |
13 |
1 file changed, 40 insertions(+) |
14 |
|
15 |
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 |
16 |
new file mode 100644 |
17 |
index 000000000000..ed8a02fef13e |
18 |
--- /dev/null |
19 |
+++ b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild |
20 |
@@ -0,0 +1,40 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Implements CORS support for aiohttp asyncio-powered asynchronous HTTP server" |
32 |
+HOMEPAGE="https://github.com/aio-libs/aiohttp-cors" |
33 |
+SRC_URI="https://github.com/aio-libs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="Apache-2.0" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ >=dev-python/aiohttp-1.1.1[${PYTHON_USEDEP}] |
41 |
+" |
42 |
+BDEPEND=" |
43 |
+ test? ( |
44 |
+ dev-python/pytest-aiohttp[${PYTHON_USEDEP}] |
45 |
+ dev-python/selenium[${PYTHON_USEDEP}] |
46 |
+ ) |
47 |
+" |
48 |
+ |
49 |
+distutils_enable_tests pytest |
50 |
+ |
51 |
+# https://github.com/aio-libs/aiohttp-cors/pull/278 |
52 |
+PATCHES=( |
53 |
+ "${FILESDIR}/${P}-tests.patch" |
54 |
+ "${FILESDIR}/${P}-py3_7.patch" |
55 |
+) |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ sed -i -e '/^addopts=/d' setup.cfg || die |
59 |
+ distutils-r1_src_prepare |
60 |
+} |