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_DEPEND="2:2.6 3:3.2"
9 SUPPORT_PYTHON_ABIS="1"
10 RESTRICT_PYTHON_ABIS="2.5 3.1"
11 PYTHON_TESTS_RESTRICTED_ABIS="*-pypy-*"
12 DISTUTILS_SRC_TEST="nosetests"
14 inherit distutils eutils
19 DESCRIPTION="Helper to test WSGI applications"
20 HOMEPAGE="http://pythonpaste.org/webtest/ http://pypi.python.org/pypi/WebTest"
21 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
25 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
28 RDEPEND=">=dev-python/webob-0.9.2"
31 doc? ( dev-python/sphinx )
32 test? ( dev-python/pyquery )"
34 S="${WORKDIR}/${MY_P}"
37 epatch "${FILESDIR}/${PN}-1.3.4-index_fixt.patch"
45 einfo "Generation of documentation"
46 sphinx-build docs html || die "Building of documentation failed"
53 # Avoid future-import bug on py2.5.* - lint3 is py3 anyway
55 [[ "${PYTHON_ABI}" == 3.* ]] && return
56 rm "${ED}$(python_get_sitedir)/webtest/lint3.py"
58 python_execute_function -q delete_lint3