28 lines
925 B
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
# Contributor: Atlanis <emallson@archlinux.us>
pkgname=python-oauth2client
pkgver=4.1.3
pkgrel=11
pkgdesc="A client library for OAuth 2.0"
arch=(any)
url="https://github.com/google/oauth2client"
license=('Apache')
depends=('python-httplib2' 'python-pyasn1' 'python-pyasn1-modules' 'python-rsa' 'python-six')
optdepends=('python-gflags: for oauth2client.tools.run function')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
source=("https://github.com/google/oauth2client/archive/v${pkgver}.tar.gz")
sha256sums=('65a05310e3f16b930454aed7bed619edca8025ba96324c3e9b57dd508f1a014f')
build() {
cd "$srcdir"/oauth2client-${pkgver}
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir"/oauth2client-${pkgver}
python -m installer --destdir="$pkgdir" dist/*.whl
}