1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_6 )
10 DESCRIPTION="DNS toolkit for Python"
11 HOMEPAGE="http://www.dnspython.org/ https://pypi.org/project/dnspython/"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
16 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
18 RESTRICT="!test? ( test )"
20 RDEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]
21 !dev-python/dnspython:py2
22 !dev-python/dnspython:py3"
23 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
27 DISTUTILS_IN_SOURCE_BUILD=1
31 "${PYTHON}" utest.py || die "tests failed under ${EPYTHON}"
32 einfo "Testsuite passed under ${EPYTHON}"
35 python_install_all() {
36 distutils-r1_python_install_all
39 docompress -x /usr/share/doc/${PF}/examples