# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=uvicorn pkgver=0.18.3 pkgrel=0 pkgdesc="Lightning-fast ASGI server" url="https://www.uvicorn.org/" license="BSD-3-Clause" arch="noarch" depends=" python3 py3-asgiref py3-click py3-h11 " makedepends="py3-build py3-hatchling py3-installer" checkdepends=" py3-dotenv py3-httptools py3-httpx py3-pytest py3-pytest-mock py3-yaml py3-trustme py3-watchgod py3-websockets py3-wsproto " subpackages="$pkgname-doc" source="https://github.com/encode/uvicorn/archive/$pkgver/uvicorn-$pkgver.tar.gz" case "$CARCH" in # test suite blocked by py3-httpx armhf|ppc64le) options="!check" ;; # test suite blocked by py3-watchgod s390x) options="!check" ;; esac build() { python3 -m build --no-isolation --wheel } check() { pytest } package() { python3 -m installer -d "$pkgdir" dist/uvicorn-$pkgver-py3-none-any.whl install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } sha512sums=" a4983e7095f3596ac54557432a074eb8cae4c6dd579fabfe8b6c34606ba8258e6c0684c2e34e8019f2455fbfd1771f8c2c88bf8b01fc505abfae93655f61f032 uvicorn-0.18.3.tar.gz "