1 |
commit: 36bc549f02f7635ca2547fe0c50bf29458b5b06c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 29 22:02:43 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 22:04:25 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36bc549f |
7 |
|
8 |
dev-python/pyspf: Switch to PEP 517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pyspf/pyspf-2.0.14-r3.ebuild | 37 +++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 37 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/pyspf/pyspf-2.0.14-r3.ebuild b/dev-python/pyspf/pyspf-2.0.14-r3.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..c21474ff960f |
18 |
--- /dev/null |
19 |
+++ b/dev-python/pyspf/pyspf-2.0.14-r3.ebuild |
20 |
@@ -0,0 +1,37 @@ |
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 |
+PYTHON_REQ_USE="ipv6(+)" |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="Python implementation of the Sender Policy Framework (SPF)" |
33 |
+HOMEPAGE="https://pypi.org/project/pyspf/" |
34 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="PSF-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+IUSE="test" |
40 |
+RESTRICT="!test? ( test )" |
41 |
+ |
42 |
+RDEPEND=" |
43 |
+ dev-python/authres[${PYTHON_USEDEP}] |
44 |
+ dev-python/dnspython[${PYTHON_USEDEP}] |
45 |
+" |
46 |
+ |
47 |
+BDEPEND=" |
48 |
+ test? ( |
49 |
+ ${RDEPEND} |
50 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
51 |
+ ) |
52 |
+" |
53 |
+ |
54 |
+python_test() { |
55 |
+ cd test || die |
56 |
+ "${EPYTHON}" testspf.py || die "Test fail with ${EPYTHON}" |
57 |
+} |