Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/aiohttp-cors/
Date: Sat, 25 Apr 2020 00:37:32
Message-Id: 1587775036.7406ddd6c411013f1c67c938fe265c162397c345.Alessandro-Barbieri@gentoo
1 commit: 7406ddd6c411013f1c67c938fe265c162397c345
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Fri Apr 24 22:08:27 2020 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sat Apr 25 00:37:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7406ddd6
7
8 dev-python/aiohttp-cors: bump to python3.8
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 .../aiohttp-cors/aiohttp-cors-0.7.0-r1.ebuild | 36 ++++++++++++++++++++++
14 1 file changed, 36 insertions(+)
15
16 diff --git a/dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r1.ebuild b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r1.ebuild
17 new file mode 100644
18 index 0000000..2c9822a
19 --- /dev/null
20 +++ b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r1.ebuild
21 @@ -0,0 +1,36 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI="7"
26 +
27 +PYTHON_COMPAT=( python3_{6,7,8} )
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="~amd64 ~x86"
38 +
39 +RDEPEND=">=dev-python/aiohttp-1.1.1[${PYTHON_USEDEP}]"
40 +BDEPEND="
41 + test? (
42 + dev-python/pytest-aiohttp[${PYTHON_USEDEP}]
43 + dev-python/selenium[${PYTHON_USEDEP}]
44 + )"
45 +
46 +distutils_enable_tests pytest
47 +
48 +# https://github.com/aio-libs/aiohttp-cors/pull/278
49 +PATCHES=(
50 + "${FILESDIR}/${P}-tests.patch"
51 + "${FILESDIR}/${P}-py3_7.patch"
52 +)
53 +
54 +src_prepare() {
55 + sed -i -e '/^addopts=/d' setup.cfg || die
56 + distutils-r1_src_prepare
57 +}