1 |
commit: c3190a16c0773fd2de65a6573727dd0d1475784f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 26 10:43:37 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 4 06:57:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3190a16 |
7 |
|
8 |
dev-python/dnspython: Make DNSSEC support optional (cryptography dep) |
9 |
|
10 |
Thanks to Michael Orlitzky. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/844058 |
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
dev-python/dnspython/dnspython-2.2.1-r1.ebuild | 52 ++++++++++++++++++++++++++ |
16 |
dev-python/dnspython/metadata.xml | 6 +++ |
17 |
2 files changed, 58 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/dnspython/dnspython-2.2.1-r1.ebuild b/dev-python/dnspython/dnspython-2.2.1-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 000000000000..8a85afa780bc |
22 |
--- /dev/null |
23 |
+++ b/dev-python/dnspython/dnspython-2.2.1-r1.ebuild |
24 |
@@ -0,0 +1,52 @@ |
25 |
+# Copyright 1999-2022 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=8 |
29 |
+ |
30 |
+DISTUTILS_USE_PEP517=poetry |
31 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
32 |
+ |
33 |
+inherit distutils-r1 |
34 |
+ |
35 |
+DESCRIPTION="DNS toolkit for Python" |
36 |
+HOMEPAGE=" |
37 |
+ https://www.dnspython.org/ |
38 |
+ https://github.com/rthalley/dnspython/ |
39 |
+ https://pypi.org/project/dnspython/ |
40 |
+" |
41 |
+SRC_URI=" |
42 |
+ https://github.com/rthalley/dnspython/archive/v${PV}.tar.gz |
43 |
+ -> ${P}.tar.gz |
44 |
+" |
45 |
+ |
46 |
+LICENSE="ISC" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" |
49 |
+IUSE="dnssec examples" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ dnssec? ( |
53 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
54 |
+ ) |
55 |
+ <dev-python/idna-4.0[${PYTHON_USEDEP}] |
56 |
+" |
57 |
+ |
58 |
+distutils_enable_tests pytest |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ sed -i -e '/network_avail/s:True:False:' \ |
62 |
+ tests/*.py || die |
63 |
+ distutils-r1_src_prepare |
64 |
+} |
65 |
+ |
66 |
+python_test() { |
67 |
+ epytest -s |
68 |
+} |
69 |
+ |
70 |
+python_install_all() { |
71 |
+ distutils-r1_python_install_all |
72 |
+ if use examples; then |
73 |
+ dodoc -r examples |
74 |
+ docompress -x /usr/share/doc/${PF}/examples |
75 |
+ fi |
76 |
+} |
77 |
|
78 |
diff --git a/dev-python/dnspython/metadata.xml b/dev-python/dnspython/metadata.xml |
79 |
index c04c973f51d2..6ca507da9d34 100644 |
80 |
--- a/dev-python/dnspython/metadata.xml |
81 |
+++ b/dev-python/dnspython/metadata.xml |
82 |
@@ -21,6 +21,12 @@ DNSPythonはPython言語用のDNSツールキットです。ほとんどのレ |
83 |
い、その戻り値を使います。低水準はゾーン、メッセージ、ネーム、レコードを直接操作 |
84 |
します。 |
85 |
</longdescription> |
86 |
+ <use> |
87 |
+ <flag name="dnssec"> |
88 |
+ Use <pkg>dev-python/cryptography</pkg> to enable low-level |
89 |
+ DNSSEC RSA, DSA, ECDSA and EdDSA signature validation. |
90 |
+ </flag> |
91 |
+ </use> |
92 |
<stabilize-allarches/> |
93 |
<upstream> |
94 |
<remote-id type="pypi">dnspython</remote-id> |