# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
# Maintainer: Morten Linderud <foxboron@archlinux.org>
# Contributor: Kaizhao Zhang <zhangkaizhao@gmail.com>

pkgname=python-google-api-core
pkgver=2.19.2
pkgrel=1
pkgdesc="Google API client core library"
arch=('any')
url="https://github.com/googleapis/googleapis"
license=('Apache-2.0')
depends=('python-pytz' 'python-requests' 'python-googleapis-common-protos' 'python-google-auth')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
optdepends=('python-grpcio: for grpc support')
source=("https://pypi.org/packages/source/g/google-api-core/google_api_core-${pkgver}.tar.gz")
sha256sums=('ca07de7e8aa1c98a8bfca9321890ad2340ef7f2eb136e558cee68f24b94b0a8f')

build() {
  cd "google_api_core-${pkgver}"
  python -m build --wheel --no-isolation
}

package() {
  cd "google_api_core-${pkgver}"
  python -m installer --destdir="$pkgdir" dist/*.whl
}
