Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/oauth2client/
Date: Thu, 24 Feb 2022 08:52:09
Message-Id: 1645692721.311a4625c0cdce9239a6b7242ced8cd5647f6e67.mgorny@gentoo
1 commit: 311a4625c0cdce9239a6b7242ced8cd5647f6e67
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 24 08:47:18 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 24 08:52:01 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=311a4625
7
8 dev-python/oauth2client: Bump to EAPI 8 / PEP517
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../oauth2client/oauth2client-4.1.3-r2.ebuild | 52 ++++++++++++++++++++++
13 1 file changed, 52 insertions(+)
14
15 diff --git a/dev-python/oauth2client/oauth2client-4.1.3-r2.ebuild b/dev-python/oauth2client/oauth2client-4.1.3-r2.ebuild
16 new file mode 100644
17 index 000000000000..29d0198dbeb8
18 --- /dev/null
19 +++ b/dev-python/oauth2client/oauth2client-4.1.3-r2.ebuild
20 @@ -0,0 +1,52 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Library for accessing resources protected by OAuth 2.0"
32 +HOMEPAGE="https://github.com/googleapis/oauth2client"
33 +SRC_URI="https://github.com/googleapis/oauth2client/archive/v${PV/_p/-post}.tar.gz -> ${P}.tar.gz"
34 +S="${WORKDIR}"/${P/_p/-post}
35 +
36 +LICENSE="Apache-2.0"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
39 +
40 +RDEPEND="
41 + >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
42 + >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}]
43 + >=dev-python/pyasn1-modules-0.0.5[${PYTHON_USEDEP}]
44 + >=dev-python/rsa-3.1.4[${PYTHON_USEDEP}]
45 + >=dev-python/six-1.6.1[${PYTHON_USEDEP}]
46 + dev-python/keyring[${PYTHON_USEDEP}]
47 + !<=dev-python/google-api-python-client-1.1[${PYTHON_USEDEP}]
48 +"
49 +BDEPEND="
50 + test? (
51 + dev-python/flask[${PYTHON_USEDEP}]
52 + dev-python/sqlalchemy[${PYTHON_USEDEP}]
53 + )
54 +"
55 +
56 +distutils_enable_tests nose
57 +
58 +PATCHES=(
59 + "${FILESDIR}/oauth2client-4.1.3-py38.patch"
60 +)
61 +
62 +python_test() {
63 + nosetests -v \
64 + -e appengine \
65 + -e django_util \
66 + -e test_multiprocess_file_storage \
67 + -e test_bad_positional || die "tests fail with ${EPYTHON}"
68 + # appengine - requires appengine
69 + # django_util - requires django
70 + # test_multiprocess_file_storage - requires fasteners
71 + # test_bad_positional - expects TypeError, gets ValueError
72 +}