summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-04-29 05:56:54 +0200
committerMichał Górny <mgorny@gentoo.org>2025-04-29 06:36:29 +0200
commitaa005acee655ef87d651ece5e6b22683f4dff3c9 (patch)
tree39c2cbf89751b1c047857b2acd51db00a32639d4
parente35c01c44369a88ad27141938aae754002f0fbe7 (diff)
downloadgentoo-aa005acee655ef87d651ece5e6b22683f4dff3c9.tar.gz
gentoo-aa005acee655ef87d651ece5e6b22683f4dff3c9.tar.bz2
gentoo-aa005acee655ef87d651ece5e6b22683f4dff3c9.zip
dev-python/dns-lexicon: Bump to 3.21.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--dev-python/dns-lexicon/Manifest1
-rw-r--r--dev-python/dns-lexicon/dns-lexicon-3.21.1.ebuild72
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/dns-lexicon/Manifest b/dev-python/dns-lexicon/Manifest
index 9445d763fff3..e0172422e3e4 100644
--- a/dev-python/dns-lexicon/Manifest
+++ b/dev-python/dns-lexicon/Manifest
@@ -1 +1,2 @@
DIST dns-lexicon-3.21.0.gh.tar.gz 5773198 BLAKE2B 484c932ae80c2a5c1dc045144cde80a41f825e8e9c9c36193522312cb460eb876ee6bf84a1c3526e8622e6312ad0cff8b4a18446dff0b420bc716527f38d0d0d SHA512 1b132fae2741d8cf505c0779724b5e0d518683226099c796f1b77b4ceb07e1fbecccb4d82869be090f2c379b3d17f19766857e49f83760d793a0934f520bc8ed
+DIST dns-lexicon-3.21.1.gh.tar.gz 5781489 BLAKE2B 985b966d124f2f0b8adf1e88ca59e7cdc8de19167b9288332a0bae3d7f2bf8d2df9bcbaef3c4a509418cf932a390af8a3403fb4064fcb4ce47740cec2884efcf SHA512 0f53001edf2425afe7b7c4315e974ee47c956b659964998b942943788711c57634eea2d7974e21005be7f0edf16800e6577c49c8789e34f2133c4f5be8ac7ac1
diff --git a/dev-python/dns-lexicon/dns-lexicon-3.21.1.ebuild b/dev-python/dns-lexicon/dns-lexicon-3.21.1.ebuild
new file mode 100644
index 000000000000..17d0d605d6d6
--- /dev/null
+++ b/dev-python/dns-lexicon/dns-lexicon-3.21.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1 optfeature
+
+DESCRIPTION="Manipulate DNS records on various DNS providers in a standardized/agnostic way"
+HOMEPAGE="
+ https://github.com/dns-lexicon/dns-lexicon/
+ https://pypi.org/project/dns-lexicon/
+"
+SRC_URI="
+ https://github.com/dns-lexicon/dns-lexicon/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+
+RDEPEND="
+ >=dev-python/beautifulsoup4-4[${PYTHON_USEDEP}]
+ >=dev-python/cryptography-2[${PYTHON_USEDEP}]
+ >=dev-python/dnspython-2[${PYTHON_USEDEP}]
+ >=dev-python/pyotp-2[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-3[${PYTHON_USEDEP}]
+ >=dev-python/requests-2[${PYTHON_USEDEP}]
+ >=dev-python/tldextract-2[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ >=dev-python/boto3-1.28[${PYTHON_USEDEP}]
+ >=dev-python/zeep-3[${PYTHON_USEDEP}]
+ dev-python/vcrpy[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+ # TODO
+ tests/test_client.py::test_client_init_when_missing_action_should_fail
+ tests/providers/test_godaddy.py::GoDaddyProviderTests
+)
+
+EPYTEST_IGNORE=(
+ # Requires the "localzone" module
+ tests/providers/test_localzone.py
+ # Requires the "softlayer" module
+ tests/providers/test_softlayer.py
+ # Requires the "transip" module
+ tests/providers/test_transip.py
+ # Requires the "oci" module
+ tests/providers/test_oci.py
+ # Uses tldextract which needs Internet access to download its database
+ tests/providers/test_auto.py
+)
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ optfeature_header \
+ "Install the following packages to enable support for additional DNS providers:"
+ optfeature Gransy dev-python/zeep
+ optfeature Route53 dev-python/boto3
+ optfeature DDNS dev-python/dnspython
+ fi
+}