59 lines
1.4 KiB
Text
59 lines
1.4 KiB
Text
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=uvicorn
|
|
pkgver=0.18.3
|
|
pkgrel=1
|
|
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
|
|
skip-warns.patch
|
|
"
|
|
|
|
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() {
|
|
export PYTHONWARNINGS="ignore::DeprecationWarning"
|
|
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
|
|
0fe235e59a595bc36c9aeb6c8f54ecde9ee4ad30dbe8feae0477db533fd1c3a4c866719b7354e0e5e0e92085ab7e4909a0586256daaaaa76465d39f653bd720a skip-warns.patch
|
|
"
|