diff options
author | Keith Maxwell <keith.maxwell@gmail.com> | 2020-04-16 20:28:30 +0100 |
---|---|---|
committer | Keith Maxwell <keith.maxwell@gmail.com> | 2020-05-07 15:51:57 +0100 |
commit | 3864c3043e68b3bcfb4ca5790978df01cb463887 (patch) | |
tree | 8e2774698149fa64159ecc1dc7321519e83adf20 | |
parent | d627debec2d34ce110e3f99f3f1cb80a3224642c (diff) | |
download | aports-3864c3043e68b3bcfb4ca5790978df01cb463887.tar.bz2 aports-3864c3043e68b3bcfb4ca5790978df01cb463887.tar.xz |
community/py3-google-api-core: new aport
Added directly to community as missing dependency of
community/py3-google-api-python-client and indirect dependency of
community/goobook
-rw-r--r-- | community/py3-google-api-core/APKBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/community/py3-google-api-core/APKBUILD b/community/py3-google-api-core/APKBUILD new file mode 100644 index 0000000000..be03b21450 --- /dev/null +++ b/community/py3-google-api-core/APKBUILD @@ -0,0 +1,31 @@ +# 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" +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-tz py3-requests 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" |