From 773b2ec7d0b06e9bf42065eb4b70569410de39d3 Mon Sep 17 00:00:00 2001 From: Keith Maxwell Date: Sat, 25 Apr 2020 18:04:01 +0100 Subject: community/py3-google-api-python-client: upgrade to 1.8.2 Also fix missing dependency and enable check(). Before this change: $ python3 -c 'import googleapiclient.discovery' Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.8/site-packages/googleapiclient/discovery.py", line 49, in import google.api_core.client_options ModuleNotFoundError: No module named 'google.api_core' After this change, `python3 -c 'import googleapiclient.discovery'` succeeds. Change log: https://github.com/googleapis/google-api-python-client/blob/master/CHANGELOG.md#182-2020-04-21 --- community/py3-google-api-python-client/APKBUILD | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'community/py3-google-api-python-client') diff --git a/community/py3-google-api-python-client/APKBUILD b/community/py3-google-api-python-client/APKBUILD index 3b1fccb637..f15f384dec 100644 --- a/community/py3-google-api-python-client/APKBUILD +++ b/community/py3-google-api-python-client/APKBUILD @@ -1,17 +1,17 @@ +# Contributor: Keith Maxwell # Maintainer: Roberto Oliveira pkgname=py3-google-api-python-client _pkgname=google-api-python-client -pkgver=1.8.0 +pkgver=1.8.2 pkgrel=0 pkgdesc="Google API Client Library for Python" -options="!check" # Some tests fail url="https://github.com/google/google-api-python-client" -arch="noarch" +arch="noarch !ppc64le" # limited by py3-grpcio license="Apache-2.0" depends="py3-google-auth py3-google-auth-httplib2 py3-uritemplate py3-six py3-httplib2 - py3-oauth2client" + py3-oauth2client py3-google-api-core" makedepends="py3-setuptools" -checkdepends="py3-mock" +checkdepends="py3-google-auth py3-google-auth-httplib2 py3-openssl py3-pytest py3-mock" source="https://files.pythonhosted.org/packages/source/g/$_pkgname/$_pkgname-$pkgver.tar.gz unittest2.patch " @@ -26,7 +26,9 @@ build() { } check() { - python3 setup.py test + python3 -m pytest tests \ + --deselect tests/test_discovery.py::DiscoveryFromDocument::test_api_endpoint_override_from_client_options \ + --deselect tests/test_discovery.py::DiscoveryFromDocument::test_api_endpoint_override_from_client_options_dict } package() { @@ -37,5 +39,5 @@ package() { chmod -R a+r "$pkgdir$_site_packages" } -sha512sums="1e5c6c7b5b0fc458bbad6efeb5b7fdee39d40b655d91741026d496265bcfa6809626892c5e2a3eed93c98d96d2b02ef7761e1282dc109858f0b1bdceb9ef5c83 google-api-python-client-1.8.0.tar.gz +sha512sums="23481987de030952da7763d1e517edc099c5d899d6a1625b81644e857c3884461613d1c21fa89c033f8d4398a0effe2818acb62c482db52a0474374d1aff55a3 google-api-python-client-1.8.2.tar.gz e47ecc9a4522520b8be00702e7ad1b358c6683fe4daf3b16446c2e96a3c42e698244bd7e54be7245b2cdd800e7326a2c1587643ca7ee60a1dec843b3f3c49cf5 unittest2.patch" -- cgit v1.2.3