1 |
commit: bc7676c74bce1ebc7425829d34f450b9b230dd0b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 18 22:41:33 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 18 22:44:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc7676c7 |
7 |
|
8 |
dev-python/rfc3986-validator: Switch to PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../rfc3986-validator-0.1.1-r1.ebuild | 33 ++++++++++++++++++++++ |
13 |
1 file changed, 33 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/rfc3986-validator/rfc3986-validator-0.1.1-r1.ebuild b/dev-python/rfc3986-validator/rfc3986-validator-0.1.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..fa5c21cd7630 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/rfc3986-validator/rfc3986-validator-0.1.1-r1.ebuild |
20 |
@@ -0,0 +1,33 @@ |
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} pypy3 ) |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+# 0.1.1 isn't tagged on GitHub |
31 |
+COMMIT_HASH="ee3dcca0df300e0584e129a4ab81828be002684b" |
32 |
+MY_PN="${PN//-/_}" |
33 |
+MY_P="${MY_PN}-${PV}" |
34 |
+ |
35 |
+DESCRIPTION="Pure python RFC3986 validator" |
36 |
+HOMEPAGE="https://pypi.org/project/rfc3986-validator/ https://github.com/naimetti/rfc3986-validator" |
37 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
38 |
+S=${WORKDIR}/${MY_P} |
39 |
+ |
40 |
+LICENSE="MIT" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
43 |
+ |
44 |
+RDEPEND="dev-python/rfc3987[${PYTHON_USEDEP}]" |
45 |
+BDEPEND="test? ( dev-python/hypothesis[${PYTHON_USEDEP}] )" |
46 |
+ |
47 |
+distutils_enable_tests pytest |
48 |
+ |
49 |
+python_prepare_all() { |
50 |
+ # remove dep on pytest-runner |
51 |
+ sed -i -r "s:('|\")pytest-runner('|\")(,|)::" setup.py || die |
52 |
+ distutils-r1_python_prepare_all |
53 |
+} |