void-packages/srcpkgs/python3-hypercorn/template

29 lines
1009 B
Bash

# Template file for 'python3-hypercorn'
pkgname=python3-hypercorn
version=0.14.3
revision=2
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=1af65061783adb4c85b4bfe9b7c9f684b904cd6885c06d787868276647810e6f
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
}