# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
# Maintainer: Morten Linderud <foxboron@archlinux.org>
# Contributor: shadyabhi <abhijeet.1989@gmail.com>

pkgname=python-google-api-python-client
pkgver=2.141.0
pkgrel=1
pkgdesc="Google API Client Library for Python"
arch=('any')
url="https://github.com/google/google-api-python-client"
license=('Apache-2.0')
depends=('python-google-auth-httplib2' 'python-uritemplate' 'python-google-api-core')
optdepends=('python-oauth2client: optional backend')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("google-api-python-client-${pkgver}.tar.gz::https://github.com/google/google-api-python-client/archive/v${pkgver}.tar.gz")
sha256sums=('3cb8e1707aa2f2d6d5f2a4d290ea21cc9ec88d4fe046f62292f8b83a1a1fcdd6')

build() {
  cd "google-api-python-client-${pkgver}"
  python -m build --wheel --no-isolation
}
 
package() {
  cd "google-api-python-client-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
}
