2015-04-04 22:04:15 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2013-08-05 10:38:22 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2013-08-05 10:38:22 +04:00
|
|
|
|
|
|
|
EAPI=5
|
2015-04-04 22:04:15 +03:00
|
|
|
|
|
|
|
PYTHON_COMPAT=( python2_7 python3_{3,4} )
|
2013-08-05 10:38:22 +04:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Network address representation and manipulation library"
|
|
|
|
HOMEPAGE="https://github.com/drkjam/netaddr http://pypi.python.org/pypi/netaddr"
|
2014-03-20 23:00:09 +04:00
|
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
2013-08-05 10:38:22 +04:00
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
2014-03-20 23:00:09 +04:00
|
|
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
2013-08-05 10:38:22 +04:00
|
|
|
IUSE="cli"
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
RDEPEND="cli? ( >=dev-python/ipython-0.13.1-r1[${PYTHON_USEDEP}] )"
|
|
|
|
|
|
|
|
python_test() {
|
2014-03-20 23:00:09 +04:00
|
|
|
"${PYTHON}" netaddr/tests/__init__.py || die "Tests fail with ${EPYTHON}"
|
2013-08-05 10:38:22 +04:00
|
|
|
}
|