29 lines
1009 B
Bash
29 lines
1009 B
Bash
# Template file for 'python3-hypercorn'
|
|
pkgname=python3-hypercorn
|
|
version=0.16.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=7fc8578cde36f3b5a08845c2ef37ff2aafb5efcbb40be561f58405fe0b8f88de
|
|
|
|
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
|
|
}
|