29 lines
1016 B
Bash
29 lines
1016 B
Bash
# Template file for 'python3-hypercorn'
|
|
pkgname=python3-hypercorn
|
|
version=0.17.3
|
|
revision=1
|
|
build_style=python3-pep517
|
|
hostmakedepends="python3-poetry-core"
|
|
depends="python3-h11 python3-h2 python3-priority python3-wsproto"
|
|
checkdepends="python3-pytest-asyncio python3-trio
|
|
python3-mock python3-hypothesis python3-httpx $depends"
|
|
short_desc="Python ASGI server based on hyper and inspired by gunicorn"
|
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/pgjones/hypercorn"
|
|
changelog="https://raw.githubusercontent.com/pgjones/hypercorn/main/CHANGELOG.rst"
|
|
distfiles="https://github.com/pgjones/hypercorn/archive/refs/tags/${version}.tar.gz"
|
|
checksum=991221bf8df1368165a22cde98f1ae2b591aa2e65c9c72c8e03ea56a9da7f672
|
|
|
|
do_check() {
|
|
vsed -i pyproject.toml -e '/addopts/d'
|
|
# Ignored tests depend on packages not offered by Void
|
|
PYTHONPATH=src python3 -m pytest \
|
|
--ignore-glob="tests/trio/*" \
|
|
--ignore=tests/middleware/test_wsgi.py
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|