# Maintainer: Erich Eckner pkgname=python-oauth2 pkgver=1.1.1 pkgrel=65 pkgdesc='framework that aims at making it easy to provide authentication via OAuth 2.0 within an application stack/' url='https://github.com/wndhydrnt/python-oauth2/' arch=('any') license=('MIT') depends=( 'python>=3.10' 'python<3.11' 'python-mock' 'python-mysql-connector' 'python-nose' 'python-pymongo' 'python-memcached' 'python-redis' 'python-tornado') makedepends=( 'python-setuptools') optdepends=( 'python-memcached' 'python-pymongo' 'python-redis' ) source=("$pkgname-$pkgver.tar.gz::https://github.com/wndhydrnt/python-oauth2/archive/v${pkgver}.tar.gz") sha512sums=('1d4d41a26ca448528b8869fef6cdf217900da388f64f4ea34f466544fde071896210ee4439e20124081209902b93356230e4828ec127f48216d149aa47fd4e62') build() { cd "${pkgname}-${pkgver}" python setup.py build } check() { cd "${pkgname}-${pkgver}" python setup.py test } package() { cd "${pkgname}-${pkgver}" python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname} }