Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ratelimit/
Date: Sun, 29 May 2022 18:38:40
Message-Id: 1653849141.d5e4c1d38a0d88f1a8d5c4c0be53999d20fb9540.arthurzam@gentoo
1 commit: d5e4c1d38a0d88f1a8d5c4c0be53999d20fb9540
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 29 18:32:21 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sun May 29 18:32:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5e4c1d3
7
8 dev-python/ratelimit: Use pep517
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/ratelimit/ratelimit-2.2.1-r1.ebuild | 27 ++++++++++++++++++++++++++
13 1 file changed, 27 insertions(+)
14
15 diff --git a/dev-python/ratelimit/ratelimit-2.2.1-r1.ebuild b/dev-python/ratelimit/ratelimit-2.2.1-r1.ebuild
16 new file mode 100644
17 index 000000000000..5bac32d2843f
18 --- /dev/null
19 +++ b/dev-python/ratelimit/ratelimit-2.2.1-r1.ebuild
20 @@ -0,0 +1,27 @@
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 +inherit distutils-r1
29 +
30 +DESCRIPTION="An API rate limit decorator for Python"
31 +HOMEPAGE="https://github.com/tomasbasham/ratelimit"
32 +SRC_URI="
33 + https://github.com/tomasbasham/${PN}/archive/v${PV}.tar.gz
34 + -> ${P}.gh.tar.gz
35 +"
36 +
37 +LICENSE="MIT"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~x86"
40 +
41 +distutils_enable_tests pytest
42 +
43 +src_prepare() {
44 + # remove --cov args injection
45 + rm pytest.ini || die
46 + distutils-r1_src_prepare
47 +}