29 lines
1009 B
Bash
29 lines
1009 B
Bash
# Template file for 'python3-hypercorn'
|
|
pkgname=python3-hypercorn
|
|
version=0.15.0
|
|
revision=1
|
|
build_style=python3-pep517
|
|
hostmakedepends="python3-poetry-core"
|
|
depends="python3-h11 python3-h2 python3-priority
|
|
python3-toml python3-typing_extensions python3-wsproto"
|
|
checkdepends="python3-pytest-asyncio python3-trio $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=e088ac4ce330bc83d4e223cd1fa875f4fd527065b0cb60d571aedc12f2370f07
|
|
|
|
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
|
|
}
|