dev-python/google-auth: readd py2

This commit is contained in:
nemunaire 2020-05-16 23:47:28 +02:00
parent 4e3050369e
commit 257202b9a1
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST google-auth-1.6.3.tar.gz 80899 BLAKE2B 71e9ef4fbb8803dbea96e1b9b3183f9bae8a9bd7e29eda1c9ee042c7abb3e5011ee4f461ddafd3295119e3a5a451892b8a38cb49702c59828baba1af35403c25 SHA512 47a3e9390428ffa58946c348d4e1a1bfe1290d6e06b75924bbacb37d5af929050690ef5c13820468de805646f4686c035b00dfe947c090d53568dd85d804af5e
EBUILD google-auth-1.6.3.ebuild 1290 BLAKE2B 6860d25d2f7f4a953311e82fac90908fce3ebc61939a1646f7edd31488063efacf5a2fa30a7ce2b924e65d6484c262ad100298f5c3f858271877b5ef89c6410d SHA512 7780b12aa3d237640e83adfb528fe38e8befc72504943aea4ce871c34202c98bd4228207970e323de6896561a3834d87841db986f223a7e4c6e906c1a2cbd50e

View File

@ -0,0 +1,49 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{6,7} )
inherit distutils-r1
DESCRIPTION="Google Authentication Library"
HOMEPAGE="https://github.com/GoogleCloudPlatform/google-auth-library-python https://pypi.org/project/google-auth/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-python/namespace-google[${PYTHON_USEDEP}]
>=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}]
>=dev-python/pyasn1-modules-0.2.1[${PYTHON_USEDEP}]
>=dev-python/rsa-3.1.4[${PYTHON_USEDEP}]
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
>=dev-python/cachetools-2.0.0[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}
test? (
dev-python/flask[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-localserver[${PYTHON_USEDEP}]
)"
src_prepare() {
# delete stray files included in the tarball
find "${S}"/tests -name '*.pyc' -delete || die
distutils-r1_src_prepare
}
python_test() {
pytest -vv || die "Tests failed under ${EPYTHON}"
}
python_install_all() {
distutils-r1_python_install_all
find "${ED}" -name '*.pth' -delete || die
}