aports/community/py3-authlib/APKBUILD

36 lines
985 B
Plaintext

# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=py3-authlib
pkgver=1.3.1
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="
6e24d65cf48637deb871b452f4ee0d229a9a84da3ca866d494c4e7ea5bf341a4278a868785b9412daf423746db004d897a4ef8b2242b2ea3b9714fe62d113948 authlib-1.3.1.tar.gz
"