summaryrefslogtreecommitdiff
path: root/dev-python/oauth2client
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-12 09:56:54 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-12 09:56:54 +0000
commitebc282ef4dfa408accac685565b8ee5f6faec119 (patch)
treec0a4f713228cda0ab17eed46f0bb7ca8cb8be2f6 /dev-python/oauth2client
parent6c8694a707151d59555b0e4e48235f085ce166c3 (diff)
gentoo auto-resync : 12:02:2023 - 09:56:54
Diffstat (limited to 'dev-python/oauth2client')
-rw-r--r--dev-python/oauth2client/Manifest2
-rw-r--r--dev-python/oauth2client/oauth2client-4.1.3-r3.ebuild85
2 files changed, 87 insertions, 0 deletions
diff --git a/dev-python/oauth2client/Manifest b/dev-python/oauth2client/Manifest
index a4731c2f223c..76d3db0a2a2e 100644
--- a/dev-python/oauth2client/Manifest
+++ b/dev-python/oauth2client/Manifest
@@ -1,4 +1,6 @@
AUX oauth2client-4.1.3-py38.patch 1782 BLAKE2B 751b62649cd7222230f809c7e957636e351cddb3588c1da112443b09067c73cc6ada588697dd36f9b6ed2115238f8f811bc5502b17c75b2f65be655b4199dc9f SHA512 3e03d7105e76206e63858a32a25dfd5bbf997ced6abafd75d0f4973528ee91cb28200854ccfa519945573992f454c18d2acad5784693acffc7509ddcb13908a8
+DIST oauth2client-4.1.3-fixes-20230207.patch 21827 BLAKE2B c04886be0efad92fff75f0d78c5597bbc386939001f1fc5d094f96899bcc25bbd80c4e620cdf401a45c7ed48a8c83515adc98a190cecbbd345f55b78ca4a0257 SHA512 4d648aff20e56628c6fa916627851d7bb50f927c1cb1a056e115130e0aec128e7e2a5571b4a35a167bbcf01762669c22008cffd5530e0006846250d32b3f8093
DIST oauth2client-4.1.3.tar.gz 185589 BLAKE2B 6cd61448e0d55cef7f2ba640c8cbb50ac83e76d0993391eb0acb3e156f937fcdee80576c9d45d505235a9f266495069664ccbfafd649a4e2d7a0990517ee8cb6 SHA512 80f49e09a6dd6767307a2c278544926fbf20b4f55e4cf83563ac7a7c1043622bd3c8c7fcf6de62896b623ca8c7947b309a5e6bf2b7cb0fccff3ff7634386b287
EBUILD oauth2client-4.1.3-r2.ebuild 1425 BLAKE2B 6571481cceff9f6fd60b99752ffdcf8fd3d2155017b13ef180ed3803c1ea3783b9ceb5b060c6aef1816bf688c2965d2cdb7cc7cd0c3032de1cb2a65460fd1fa6 SHA512 e7bed040d05f4797f5058b064a698357fecb821259fc1a851232026ada9e5964f464051689a7d0e25a8a2c873ebe31921f52aa9d37238955aaa971a10ac80a23
+EBUILD oauth2client-4.1.3-r3.ebuild 2344 BLAKE2B acc20be847650feda07a3ad875f5a2258a17206d758be2a9af891ce1536ce658592b2d610b82ad130ff6b404f98b04daed1deaad3754515f1fb96fa1d92b6450 SHA512 3a09c679a548f994c083c50483d675a738fd36273dce282fec784f39f83f6e78659bce66b54c63b8a1888eceb1c5f526dd49cc95bf47720bc578951b324a681c
MISC metadata.xml 403 BLAKE2B 53ea3fd7507fa9760d7af00c61e4598779e775fd3ab7e498908aa39f3472dff0cdd8246d7c2e7b62ebbfbf01c7ed9c1725dbb276e8685cb46ea77bcc2c02f9d2 SHA512 1cdf21510872f686912e699627a0252119ca25a3198183d74608a12e07bf14538398794e235ccdfdec06e1aafc52cbb693748bfde50855c083a59e3f1ada3870
diff --git a/dev-python/oauth2client/oauth2client-4.1.3-r3.ebuild b/dev-python/oauth2client/oauth2client-4.1.3-r3.ebuild
new file mode 100644
index 000000000000..fd404d1b6b8e
--- /dev/null
+++ b/dev-python/oauth2client/oauth2client-4.1.3-r3.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Library for accessing resources protected by OAuth 2.0"
+HOMEPAGE="https://github.com/googleapis/oauth2client"
+SRC_URI="
+ https://github.com/googleapis/oauth2client/archive/v${PV/_p/-post}.tar.gz -> ${P}.tar.gz
+ https://dev.gentoo.org/~robbat2/distfiles/oauth2client-4.1.3-fixes-20230207.patch
+ "
+S="${WORKDIR}"/${P/_p/-post}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+
+# This package supports 3 different crypto options, but tests ALL of them
+CRYPTO_A=">=dev-python/pycryptodome-2.6[${PYTHON_USEDEP}]"
+CRYPTO_B="dev-python/pyopenssl[${PYTHON_USEDEP}]"
+CRYPTO_C="(
+ >=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}]
+ )"
+
+RDEPEND="
+ >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
+ >=dev-python/six-1.6.1[${PYTHON_USEDEP}]
+ || ( ${CRYPTO_A} ${CRYPTO_B} ${CRYPTO_C} )
+ dev-python/keyring[${PYTHON_USEDEP}]
+ !<=dev-python/google-api-python-client-1.1[${PYTHON_USEDEP}]
+"
+
+# Not well-tested upstream, and broken:
+# django dev-python/django[${PYTHON_USEDEP}]
+# flask dev-python/flask[${PYTHON_USEDEP}]
+BDEPEND="
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/sqlalchemy[${PYTHON_USEDEP}]
+ dev-python/fasteners[${PYTHON_USEDEP}]
+ ${CRYPTO_A}
+ ${CRYPTO_B}
+ ${CRYPTO_C}
+ )
+"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+ "${DISTDIR}/oauth2client-4.1.3-fixes-20230207.patch"
+)
+
+src_prepare() {
+ default
+ # These contrib modules are broken upstream:
+ REMOVE=(
+ # django
+ "${S}"/oauth2client/contrib/django_util/
+ "${S}"/samples/django/
+ "${S}"/tests/contrib/django_util/
+ "${S}"/docs/source/oauth2client.contrib.django*
+ # flask
+ "${S}"/docs/source/oauth2client.contrib.flask_util.rst
+ "${S}"/oauth2client/contrib/flask_util.py
+ "${S}"/tests/contrib/test_flask_util.py
+ )
+ rm -rf "${REMOVE[@]}"
+}
+
+python_test() {
+ TEST_ARGS=(
+ # appengine - requires appengine
+ # django_util - requires django, contrib module broken upstream
+ # flash - requires flask, contrib module broken upstream
+ --ignore-glob='*appengine*'
+ )
+ epytest "${TEST_ARGS[@]}" || die "tests fail with ${EPYTHON}"
+}