ayaports/backports/uvicorn/APKBUILD

56 lines
1.1 KiB
Text
Raw Normal View History

2023-01-12 18:48:03 +00:00
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=uvicorn
2023-05-05 05:22:53 +00:00
pkgver=0.22.0
2023-01-12 18:48:03 +00:00
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
"
2023-05-05 05:22:53 +00:00
makedepends="py3-gpep517 py3-hatchling"
2023-01-12 18:48:03 +00:00
checkdepends="
2023-05-05 05:22:53 +00:00
py3-a2wsgi
2023-01-12 18:48:03 +00:00
py3-dotenv
py3-httptools
py3-httpx
py3-pytest
py3-pytest-mock
py3-trustme
2023-05-05 05:22:53 +00:00
py3-watchfiles
2023-01-12 18:48:03 +00:00
py3-websockets
py3-wsproto
2023-05-05 05:22:53 +00:00
py3-yaml
2023-01-12 18:48:03 +00:00
"
2023-05-05 05:22:53 +00:00
subpackages="$pkgname-pyc"
2023-01-12 18:48:03 +00:00
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" ;;
esac
build() {
2023-05-05 05:22:53 +00:00
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
2023-01-12 18:48:03 +00:00
}
check() {
pytest
}
package() {
2023-05-05 05:22:53 +00:00
python3 -m installer -d "$pkgdir" \
dist/uvicorn-$pkgver-py3-none-any.whl
2023-01-12 18:48:03 +00:00
}
sha512sums="
2023-05-05 05:22:53 +00:00
61af2df426a5bc060a32730ddf024ca8dd39ccea6800235bf48d7e0c694b9d363cbedd826f498063c6779061af84b6b56e8ab0a466e74291dbbaf5ae995e5587 uvicorn-0.22.0.tar.gz
2023-01-12 18:48:03 +00:00
"