1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 )
9 DESCRIPTION="JanRain's URL Utilities"
10 HOMEPAGE="http://www.openidenabled.com/openid/libraries/python/"
11 SRC_URI="http://www.openidenabled.com/resources/downloads/python-openid/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
17 RESTRICT="!test? ( test )"
19 RDEPEND="curl? ( >=dev-python/pycurl-7.15.1[${PYTHON_USEDEP}] )"
22 REQUIRED_USE="test? ( curl )"
23 # test fails if it finds 'localhost' instead of '127.0.0.1'
24 PATCHES=( "${FILESDIR}/${P}-gentoo-test_fetchers.patch" )
27 PYTHONPATH=. "${PYTHON}" admin/runtests || die "tests failed"