You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/ipy/ipy-0.76-r1.ebuild

37 lines
1.1 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/ipy/ipy-0.76-r1.ebuild,v 1.6 2014/03/31 21:19:47 mgorny Exp $
EAPI="5"
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy pypy2_0 )
inherit distutils-r1
MY_PN="IPy"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Class and tools for handling of IPv4 and IPv6 addresses and networks"
HOMEPAGE="https://github.com/haypo/python-ipy/wiki http://pypi.python.org/pypi/IPy"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND=""
S="${WORKDIR}/${MY_P}"
DOCS=( ChangeLog README )
python_test() {
# doctests for py3 unaltered read py2 files from "${S}" causing total failure
cp -r test_doc.py README test "${BUILD_DIR}" || die
pushd "${BUILD_DIR}" > /dev/null || die
"${PYTHON}" test/test_IPy.py || die "Tests fail with ${EPYTHON}"
"${PYTHON}" test_doc.py || die "Doctests fail with ${EPYTHON}"
popd > /dev/null || die
}