# Contributor: Rasmus Thomsen maintainer="fossdd " pkgname=py3-authlib pkgver=1.5.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-cachelib py3-django py3-flask-sqlalchemy py3-httpx py3-pytest-asyncio py3-pytest-django py3-requests py3-starlette " subpackages="$pkgname-pyc" source="https://github.com/authlib/authlib/archive/refs/tags/v$pkgver/authlib-v$pkgver.tar.gz" builddir="$srcdir/authlib-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { # django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, # but settings are not configured. You must either define the environment variable # DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. pytest \ --ignore tests/django/test_oauth2/test_authorization_code_grant.py \ --ignore tests/django/test_oauth2/test_client_credentials_grant.py \ --ignore tests/django/test_oauth2/test_implicit_grant.py \ --ignore tests/django/test_oauth2/test_password_grant.py \ --ignore tests/django/test_oauth2/test_refresh_token.py \ --ignore tests/django/test_oauth2/test_resource_protector.py \ --ignore tests/django/test_oauth2/test_revocation_endpoint.py \ --ignore tests/django/test_oauth1/test_authorize.py \ --ignore tests/django/test_oauth1/test_resource_protector.py \ --ignore tests/django/test_oauth1/test_token_credentials.py \ --ignore tests/clients/test_django/test_oauth_client.py \ --ignore tests/jose/test_chacha20.py } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" ac396e3ea13637aa612f5893687b9dc51988addf719c304007ec6966ac36f843e82090ebe109d454d8da8766eeb50661a0968ff7f596b00541aaf592df919892 authlib-v1.5.2.tar.gz "