1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_DEPEND="2:2.6 3:3.2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="2.5 3.1"
9 PYTHON_TESTS_RESTRICTED_ABIS="*-pypy-*"
10 DISTUTILS_SRC_TEST="nosetests"
12 inherit distutils 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 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
26 RDEPEND=">=dev-python/webob-0.9.2"
29 doc? ( dev-python/sphinx )
30 test? ( dev-python/pyquery )"
32 S="${WORKDIR}/${MY_P}"
35 epatch "${FILESDIR}/${PN}-1.3.4-index_fixt.patch"
43 einfo "Generation of documentation"
44 sphinx-build docs html || die "Building of documentation failed"
51 # Avoid future-import bug on py2.5.* - lint3 is py3 anyway
53 [[ "${PYTHON_ABI}" == 3.* ]] && return
54 rm "${ED}$(python_get_sitedir)/webtest/lint3.py"
56 python_execute_function -q delete_lint3