1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
7 # Testsuite written for py2 only, no indication given in source
11 DESCRIPTION="Support of OAuth 1.0a in Django using python-oauth2"
12 HOMEPAGE="https://pypi.org/project/django-oauth-plus/ http://code.welldev.org/django-oauth-plus/"
13 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
17 KEYWORDS="~amd64 ~x86"
19 RESTRICT="!test? ( test )"
22 >=dev-python/django-1.3[${PYTHON_USEDEP}]
23 >=dev-python/oauth2-1.5.170[${PYTHON_USEDEP}]"
24 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
26 dev-python/mock[${PYTHON_USEDEP}] )"
29 PYTHONPATH=.:oauth_provider
30 if "${PYTHON}" oauth_provider/runtests/runtests.py; then
31 einfo "Testsuite passed under ${EPYTHON}"
33 die "Testsuite failed under ${EPYTHON}"