diff options
Diffstat (limited to 'dev-python/dnspython')
-rw-r--r-- | dev-python/dnspython/Manifest | 2 | ||||
-rw-r--r-- | dev-python/dnspython/dnspython-2.7.0.ebuild | 55 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/dnspython/Manifest b/dev-python/dnspython/Manifest index 96a8861f8ca2..2dfa4846592b 100644 --- a/dev-python/dnspython/Manifest +++ b/dev-python/dnspython/Manifest @@ -1,3 +1,5 @@ DIST dnspython-2.6.1.gh.tar.gz 373684 BLAKE2B 63ac506d528a9e3684daf4888b51d732d9a12c3439ff1c353250a7bad78781f9f12bb13509e69093d5585a4a04bf2fbb1b8eb690a39f27e5d58e8f0f3b3b36a8 SHA512 77e9c69ac70e9e31a11188b968d28b8f2890b053b2cce0e608eefad7fd2c2b0f30c074222b2e5e85c0b4b8705f2e45acfa8b016a7808cc421df1d77f2561d978 +DIST dnspython-2.7.0.gh.tar.gz 386890 BLAKE2B 209bbb761cff2e39f86fb94458976766f3cac93e47f2c25294c359c98126aa4670b8157fad6c2bbf67ef250150310b31068690cec43ef148bbaf541873c37f38 SHA512 d73b90a06fa4c731393f719a79ec1339c3f8010b0ef4e58d8aa1aa5e0f2804dff8a79e20d9c9175b41b66bc9cf1712c33f4e2ed14820afc74d988096a42488b5 EBUILD dnspython-2.6.1.ebuild 1013 BLAKE2B ec0105458b31e427b06fb53f8e8828deb131157dbda2f0d32284e3b02d5cec229e73e94155719af837e2705b46e45c6d2232257f1606180912058158cef1e2d4 SHA512 fd2de434116f13d93e5549fd502b10c89f33b2d6e2eee6a88cae50784313a93cdccad00811673467ad380815c2c92c432a80a44022d1d7bb255209f65db267e7 +EBUILD dnspython-2.7.0.ebuild 1235 BLAKE2B e05b25a6c6f2764733761dd1ff744e5758e7c72f355a1599adf16ec78d4b3a2760ef9254e9b19159926290bda08cccd6fd42e14b7ec268ee1d07dbc798b4532f SHA512 7bde48cfd78ad902290c4f9f7bd6b969418858e02844ea42ae6365975270dc9b223f7a66a12fba216e50b4d82308d29cfbfaabbde1feeae45d711533b9d5be51 MISC metadata.xml 1709 BLAKE2B abd502753325fedca3f1ca94818258c9d1b82f88766f9e005b35b3e79aff71ca2efaf06188e73ea30830f80ec011cdf5c42df320130c9295e13d3c427a148f8c SHA512 8c25d579a4a2a7c5ff34c21643a1386a434545f6b9b465f4aa8e07f7da3aee203bbc0341e930ddb767af431f64e8024ddd6cc8513cfce862c5900da4637bb1c8 diff --git a/dev-python/dnspython/dnspython-2.7.0.ebuild b/dev-python/dnspython/dnspython-2.7.0.ebuild new file mode 100644 index 000000000000..24a34d0cb853 --- /dev/null +++ b/dev-python/dnspython/dnspython-2.7.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{10..13} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="DNS toolkit for Python" +HOMEPAGE=" + https://www.dnspython.org/ + https://github.com/rthalley/dnspython/ + https://pypi.org/project/dnspython/ +" +SRC_URI=" + https://github.com/rthalley/dnspython/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="dnssec examples" + +RDEPEND=" + dnssec? ( + >=dev-python/cryptography-41[${PYTHON_USEDEP}] + ) + >=dev-python/idna-2.1[${PYTHON_USEDEP}] +" +# note: skipping DoH test deps because they require Internet anyway +BDEPEND=" + test? ( + >=dev-python/cryptography-41[${PYTHON_USEDEP}] + >=dev-python/quart-trio-0.11.0[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x NO_INTERNET=1 + epytest +} + +python_install_all() { + distutils-r1_python_install_all + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} |