aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-google-api-core/APKBUILD
blob: b5f199aa4af0c94c3f4178f27c1c48d5b6d0f699 (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
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-google-api-core
_pyname=google-api-core
pkgver=2.10.2
pkgrel=0
pkgdesc="Google API client core library"
options="!check" # Can't find its own module for testing
url="https://github.com/googleapis/python-api-core"
arch="noarch !ppc64le"  # limited by py3-grpcio
license="Apache-2.0"
depends="python3 py3-setuptools py3-googleapis-common-protos py3-protobuf
	py3-tz py3-requests"
checkdepends="py3-pytest py3-mock py3-google-auth py3-grpcio"
source="https://files.pythonhosted.org/packages/source/g/google-api-core/google-api-core-$pkgver.tar.gz"

builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" python3 -m pytest \
		--deselect tests/unit/test_retry.py::TestRetry::test___call___and_execute_retry_hitting_deadline
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
95617f98387e17240610027235da9566d615a3f44959ab71bf6de869e1a73aab5b8e16a8796519181ca7202c8208a67a67902057460f3ac6d2ef00599f37e35d  google-api-core-2.10.2.tar.gz
"