void-packages/srcpkgs/python3-hypercorn/template

31 lines
1.1 KiB
Bash

# Template file for 'python3-hypercorn'
pkgname=python3-hypercorn
version=0.13.2
revision=1
wrksrc="${pkgname#*-}-${version}"
build_style=python3-pep517
make_install_target="Hypercorn-${version}-*-*-*.whl"
hostmakedepends="python3-poetry-core"
depends="python3-h11 python3-h2 python3-priority
python3-toml python3-typing_extensions python3-wsproto"
checkdepends="python3-pytest-asyncio python3-tomli $depends"
short_desc="Python ASGI server based on hyper and inspired by gunicorn"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="MIT"
homepage="https://gitlab.com/pgjones/hypercorn"
changelog="https://gitlab.com/pgjones/hypercorn/-/blob/master/CHANGELOG.rst"
distfiles="${homepage}/-/archive/${version}/${pkgname#*-}-${version}.tar.gz"
checksum=f08bf9cbd9d813f4cd29bb5398b064176b4639dcc430dd1d366a389dae4ca280
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
}