1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
10 DESCRIPTION="IPv4/IPv6 manipulation library, backport of the ipaddress module"
11 HOMEPAGE="https://github.com/phihag/ipaddress"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
19 BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
21 python_prepare_all() {
22 sed -i 's:unittest.main():unittest.main(verbosity=2):' \
23 test_ipaddress.py || die
25 distutils-r1_python_prepare_all
29 "${PYTHON}" test_ipaddress.py || die