1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_{6,7} )
10 DESCRIPTION="Google Authentication Library"
11 HOMEPAGE="https://github.com/GoogleCloudPlatform/google-auth-library-python https://pypi.org/project/google-auth/"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
18 RESTRICT="!test? ( test )"
21 dev-python/namespace-google[${PYTHON_USEDEP}]
22 >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}]
23 >=dev-python/pyasn1-modules-0.2.1[${PYTHON_USEDEP}]
24 >=dev-python/rsa-3.1.4[${PYTHON_USEDEP}]
25 >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
26 >=dev-python/cachetools-2.0.0[${PYTHON_USEDEP}]
30 dev-python/flask[${PYTHON_USEDEP}]
31 dev-python/mock[${PYTHON_USEDEP}]
32 dev-python/pytest[${PYTHON_USEDEP}]
33 dev-python/pytest-localserver[${PYTHON_USEDEP}]
37 # delete stray files included in the tarball
38 find "${S}"/tests -name '*.pyc' -delete || die
39 distutils-r1_src_prepare
43 pytest -vv || die "Tests failed under ${EPYTHON}"
46 python_install_all() {
47 distutils-r1_python_install_all
48 find "${ED}" -name '*.pth' -delete || die