# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=py3-authlib
pkgver=1.3.2
pkgrel=0
pkgdesc="Python library for building OAuth and OpenID Connect servers"
url="https://github.com/lepture/authlib"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-cryptography"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
#checkdepends="py3-django py3-flask-sqlalchemy"
options="!check" # missing deps: py3-httpx, py3-starlette,py3-pytest-django
subpackages="$pkgname-pyc"
source="https://pypi.io/packages/source/A/Authlib/authlib-$pkgver.tar.gz"
builddir="$srcdir/authlib-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 setup.py test
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/Authlib*.whl
}

sha512sums="
6604558cf346af1e881ba947a1f0570e25a50e078f2057daa7044649f7c6fa1e866479ef82d7175806329dbbe8d88902fe2b8cedaba94d434d1ef56bcbd865b5  authlib-1.3.2.tar.gz
"
