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/python-yadis/python-yadis-1.1.0-r1.ebuild

45 lines
1.1 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-yadis/python-yadis-1.1.0-r1.ebuild,v 1.2 2012/08/02 22:09:39 neurogeek Exp $
EAPI="4"
PYTHON_DEPEND="2"
PYTHON_USE_WITH="xml(+)"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit distutils eutils
DESCRIPTION="Yadis service discovery library."
HOMEPAGE="http://www.openidenabled.com/yadis/libraries/python/"
SRC_URI="http://www.openidenabled.com/resources/downloads/python-openid/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="dev-python/elementtree
dev-python/python-urljr"
DEPEND="${RDEPEND}
test? ( >=dev-python/pyflakes-0.2.1 )"
PYTHON_MODNAME="yadis"
src_prepare() {
# Fix broken test.
epatch "${FILESDIR}/${P}-gentoo-test.patch"
}
src_test() {
testing() {
if [[ ${PYTHON_ABI} != "2.7" ]]; then
ewarn "Tests are known to fail on ${PYTHON_ABI}"
fi
./admin/runtests
}
python_execute_function testing
einfo "The pyflake output about XML* redefinitions can be safely ignored"
}