1 |
commit: af4cd2e469c888b3a9f9449101fbed05a11dc7d3 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 4 03:15:39 2017 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 4 03:15:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af4cd2e4 |
7 |
|
8 |
dev-python/google-auth: add package |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
dev-python/google-auth/Manifest | 1 + |
13 |
dev-python/google-auth/google-auth-1.0.0.ebuild | 42 +++++++++++++++++++++++++ |
14 |
dev-python/google-auth/metadata.xml | 12 +++++++ |
15 |
3 files changed, 55 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/google-auth/Manifest b/dev-python/google-auth/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000000..04adfd4a150 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/google-auth/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST google-auth-1.0.0.tar.gz 66514 SHA256 9cec5a1e8161e5074a54af66f0f2ebf2cbdcc4aad1ffaa804589c3029695fa6a SHA512 7826bab85a68109f8118a28a1b9e5e4a5c0953ee1dae8f8ba266fefed4c949d0a20680fd0b3019f137c2d9b2d350825cf6679db110238808e7e5bca49704d6bf WHIRLPOOL 4b422bc70ad34a40135c1400aa7b7c45029ab420c16ba499f12a421585b4e0d45562458183f8e4f7a0027f312ce8d8cf5da3f4d0ffb65fe6381a1f0a75fc806e |
24 |
|
25 |
diff --git a/dev-python/google-auth/google-auth-1.0.0.ebuild b/dev-python/google-auth/google-auth-1.0.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..33a15b28e75 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/google-auth/google-auth-1.0.0.ebuild |
30 |
@@ -0,0 +1,42 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Google Authentication Library" |
41 |
+HOMEPAGE="https://pypi.python.org/pypi/google-auth/ " |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="Apache-2.0" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="test" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/pyasn1-modules-0.0.5[${PYTHON_USEDEP}] |
52 |
+ >=dev-python/rsa-3.1.4[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/six-1.6.1[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/cachetools-2.0.0[${PYTHON_USEDEP}] |
55 |
+ " |
56 |
+DEPEND="${RDEPEND} |
57 |
+ test? ( |
58 |
+ dev-python/flask[${PYTHON_USEDEP}] |
59 |
+ dev-python/mock[${PYTHON_USEDEP}] |
60 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
61 |
+ dev-python/pytest-localserver[${PYTHON_USEDEP}] |
62 |
+ )" |
63 |
+ |
64 |
+python_prepare_all() { |
65 |
+ # urllib3-1.16 raised MaxRetryError, not TransportError |
66 |
+ sed -e 's:test_connection_error:_\0:' -i tests/transport/compliance.py || die |
67 |
+ distutils-r1_python_prepare_all |
68 |
+} |
69 |
+ |
70 |
+python_test() { |
71 |
+ py.test -v || die "Tests failed under ${EPYTHON}" |
72 |
+} |
73 |
|
74 |
diff --git a/dev-python/google-auth/metadata.xml b/dev-python/google-auth/metadata.xml |
75 |
new file mode 100644 |
76 |
index 00000000000..9ee4c6540b0 |
77 |
--- /dev/null |
78 |
+++ b/dev-python/google-auth/metadata.xml |
79 |
@@ -0,0 +1,12 @@ |
80 |
+<?xml version="1.0" encoding="UTF-8"?> |
81 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
82 |
+<pkgmetadata> |
83 |
+ <maintainer type="person"> |
84 |
+ <email>zmedico@g.o</email> |
85 |
+ <name>Zac Medico</name> |
86 |
+ </maintainer> |
87 |
+ <upstream> |
88 |
+ <remote-id type="pypi">google-auth</remote-id> |
89 |
+ <remote-id type="github">GoogleCloudPlatform/google-auth-library-python</remote-id> |
90 |
+ </upstream> |
91 |
+</pkgmetadata> |