blob: f15f384deceebe08e8966dbcfce3b66ad4ca849e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=py3-google-api-python-client
_pkgname=google-api-python-client
pkgver=1.8.2
pkgrel=0
pkgdesc="Google API Client Library for Python"
url="https://github.com/google/google-api-python-client"
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-google-api-core"
makedepends="py3-setuptools"
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
"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-google-api-python-client" # Backwards compatibility
provides="py-google-api-python-client=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
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() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
# Fix permissions
_site_packages=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
chmod -R a+r "$pkgdir$_site_packages"
}
sha512sums="23481987de030952da7763d1e517edc099c5d899d6a1625b81644e857c3884461613d1c21fa89c033f8d4398a0effe2818acb62c482db52a0474374d1aff55a3 google-api-python-client-1.8.2.tar.gz
e47ecc9a4522520b8be00702e7ad1b358c6683fe4daf3b16446c2e96a3c42e698244bd7e54be7245b2cdd800e7326a2c1587643ca7ee60a1dec843b3f3c49cf5 unittest2.patch"
|