ayaports/user/py3-uvicorn/APKBUILD

27 lines
983 B
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-uvicorn
_pyname="uvicorn"
pkgver=0.18.3
pkgrel=0
arch="noarch !s390x !armhf !ppc64le" # py3-watchfiles py3-uvloop
pkgdesc="The lightning-fast ASGI server"
url="https://pypi.python.org/project/$_pyname"
license="BSD-3-Clause"
depends="python3 py3-asgiref py3-click py3-h11 py3-websockets py3-httptools py3-uvloop py3-watchfiles"
makedepends="py3-installer py3-hatchling py3-build"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python3 -m build --wheel --no-isolation
}
package() {
python3 -m installer --destdir="$pkgdir" dist/*.whl
}
sha512sums="
f54f1e018e5b9e9dff865e7211199b4605088640579fa81bbe0a7cdf357d76fc33fb5fe6fe0806dcc08354320ddde9d7c3bb290205ea4de57cc79ae147a3d14a py3-uvicorn-0.18.3.tar.gz
"