mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 04:05:40 +03:00
32 lines
1.1 KiB
Text
32 lines
1.1 KiB
Text
# 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=1
|
|
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"
|