aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-google-api-core/APKBUILD
blob: cbb358d6244fb75e0a5d00cb393bd6e7a29b99d3 (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
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-google-api-core
_pyname=google-api-core
pkgver=1.17.0
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="2fde24d23e912898b91807fd674f23f7c7483fe3f8b8f6c7e05851fd5f908accf709ebb02f6f85e34c241d30dd91aace11cb3757f02ec0fabea34e107bf8e5a8  google-api-core-1.17.0.tar.gz"