diff --git a/dev-python/google-auth/Manifest b/dev-python/google-auth/Manifest new file mode 100644 index 0000000000000..04adfd4a15066 --- /dev/null +++ b/dev-python/google-auth/Manifest @@ -0,0 +1 @@ +DIST google-auth-1.0.0.tar.gz 66514 SHA256 9cec5a1e8161e5074a54af66f0f2ebf2cbdcc4aad1ffaa804589c3029695fa6a SHA512 7826bab85a68109f8118a28a1b9e5e4a5c0953ee1dae8f8ba266fefed4c949d0a20680fd0b3019f137c2d9b2d350825cf6679db110238808e7e5bca49704d6bf WHIRLPOOL 4b422bc70ad34a40135c1400aa7b7c45029ab420c16ba499f12a421585b4e0d45562458183f8e4f7a0027f312ce8d8cf5da3f4d0ffb65fe6381a1f0a75fc806e diff --git a/dev-python/google-auth/google-auth-1.0.0.ebuild b/dev-python/google-auth/google-auth-1.0.0.ebuild new file mode 100644 index 0000000000000..33a15b28e756a --- /dev/null +++ b/dev-python/google-auth/google-auth-1.0.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Google Authentication Library" +HOMEPAGE="https://pypi.python.org/pypi/google-auth/ " +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}] + >=dev-python/pyasn1-modules-0.0.5[${PYTHON_USEDEP}] + >=dev-python/rsa-3.1.4[${PYTHON_USEDEP}] + >=dev-python/six-1.6.1[${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}] + )" + +python_prepare_all() { + # urllib3-1.16 raised MaxRetryError, not TransportError + sed -e 's:test_connection_error:_\0:' -i tests/transport/compliance.py || die + distutils-r1_python_prepare_all +} + +python_test() { + py.test -v || die "Tests failed under ${EPYTHON}" +} diff --git a/dev-python/google-auth/metadata.xml b/dev-python/google-auth/metadata.xml new file mode 100644 index 0000000000000..9ee4c6540b0ed --- /dev/null +++ b/dev-python/google-auth/metadata.xml @@ -0,0 +1,12 @@ + + + + + zmedico@gentoo.org + Zac Medico + + + google-auth + GoogleCloudPlatform/google-auth-library-python + +