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