mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
# 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=2.86.0
|
|
pkgrel=0
|
|
pkgdesc="Google API Client Library for Python"
|
|
url="https://github.com/googleapis/google-api-python-client"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="
|
|
py3-google-api-core
|
|
py3-google-auth
|
|
py3-google-auth-httplib2
|
|
py3-httplib2
|
|
py3-oauth2client
|
|
py3-uritemplate
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-mock
|
|
py3-openssl
|
|
py3-parameterized
|
|
py3-pytest
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/g/google-api-python-client/google-api-python-client-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
replaces="py-google-api-python-client" # Backwards compatibility
|
|
provides="py-google-api-python-client=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 -m installer dist/*.whl
|
|
testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
2d1aea4a6735aeffbc4aba05affaa3c4389e2f9f121185d5a5d47e818e33ae3506bebf2748d7a14b374310531c7c3a34325524c5c48df3c882c6b2a4ce579e8d google-api-python-client-2.86.0.tar.gz
|
|
"
|