1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_6 pypy3 )
11 DESCRIPTION="Python DNS (Domain Name System) library"
12 HOMEPAGE="https://launchpad.net/py3dns"
13 SRC_URI="https://launchpad.net/${MY_PN}/trunk/${PV}/+download/${MY_P}.tar.gz"
17 KEYWORDS="amd64 hppa ~ia64 ~ppc ~sparc x86"
20 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
22 # Tests require network access
25 S="${WORKDIR}/${MY_P}"
28 "${EPYTHON}" -m unittest || die "tests failed with ${EPYTHON}"
31 python_install_all() {
34 dodoc -r tests/. tools/.
35 docompress -x /usr/share/doc/${PF}/examples
37 distutils-r1_python_install_all