diff options
author | Zac Medico <zmedico@gentoo.org> | 2017-05-03 20:15:39 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2017-05-03 20:15:39 -0700 |
commit | af4cd2e469c888b3a9f9449101fbed05a11dc7d3 (patch) | |
tree | 1d2c47852164998087cb255d7c1deba12ec969bc /dev-python/google-auth | |
parent | dev-python/pytest-localserver: add pypy to PYTHON_COMPAT (diff) | |
download | gentoo-af4cd2e469c888b3a9f9449101fbed05a11dc7d3.tar.gz gentoo-af4cd2e469c888b3a9f9449101fbed05a11dc7d3.tar.bz2 gentoo-af4cd2e469c888b3a9f9449101fbed05a11dc7d3.zip |
dev-python/google-auth: add package
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-python/google-auth')
-rw-r--r-- | dev-python/google-auth/Manifest | 1 | ||||
-rw-r--r-- | dev-python/google-auth/google-auth-1.0.0.ebuild | 42 | ||||
-rw-r--r-- | dev-python/google-auth/metadata.xml | 12 |
3 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/google-auth/Manifest b/dev-python/google-auth/Manifest new file mode 100644 index 000000000000..04adfd4a1506 --- /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 000000000000..33a15b28e756 --- /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 000000000000..9ee4c6540b0e --- /dev/null +++ b/dev-python/google-auth/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + <name>Zac Medico</name> + </maintainer> + <upstream> + <remote-id type="pypi">google-auth</remote-id> + <remote-id type="github">GoogleCloudPlatform/google-auth-library-python</remote-id> + </upstream> +</pkgmetadata> |