1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 #Needed by sys-cluster/keystone[test]
8 PYTHON_COMPAT=( python2_6 python2_7 )
9 #restricted for failing test :(
12 inherit distutils-r1 eutils
17 DESCRIPTION="Helper to test WSGI applications"
18 HOMEPAGE="http://pythonpaste.org/webtest/ http://pypi.python.org/pypi/WebTest"
19 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
23 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
26 RDEPEND=">=dev-python/webob-0.9.2[${PYTHON_USEDEP}]"
28 dev-python/setuptools[${PYTHON_USEDEP}]
29 dev-python/lxml[${PYTHON_USEDEP}]
30 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
31 test? ( dev-python/pyquery[${PYTHON_USEDEP}]
32 dev-python/nose[${PYTHON_USEDEP}] )"
34 S="${WORKDIR}/${MY_P}"
37 epatch "${FILESDIR}/${PN}-1.3.4-index_fixt.patch"
38 distutils-r1_python_prepare
42 distutils-r1_python_compile
45 einfo "Generation of documentation"
46 sphinx-build docs html || die "Building of documentation failed"
51 "${PYTHON}" setup.py nosetests || die
55 distutils-r1_python_install_all