void-packages/srcpkgs/python3-quart/template

33 lines
1.2 KiB
Bash

# Template file for 'python3-quart'
pkgname=python3-quart
version=0.18.0
revision=1
wrksrc="${pkgname#*-}-${version}"
build_style=python3-pep517
make_install_target="quart-${version}-*-*-*.whl"
hostmakedepends="python3-poetry-core"
depends="python3-aiofiles python3-hypercorn python3-click python3-MarkupSafe
python3-blinker python3-itsdangerous python3-Jinja2 python3-Werkzeug"
checkdepends="python3-pytest-asyncio python3-hypothesis python3-mock python3-dotenv unzip $depends"
short_desc="Python asyncio ASGI web framework with Flask API"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="MIT"
homepage="https://quart.palletsprojects.com/en/latest/"
changelog="https://raw.githubusercontent.com/pallets/quart/main/CHANGES.rst"
distfiles="https://github.com/pallets/quart/archive/refs/tags/${version}.tar.gz"
checksum=f462bd0c793c34dff71ba3a9956b809e905072595a17541a991a9574f6bd0762
do_check() {
# Tests require dist-info on the package, which is only in the wheel.
# Pip can install the wheel in the build tree, but unzip is less evil.
mkdir -p test
unzip ${make_install_target} -d test
vsed -e '/addopts/d' -i pyproject.toml
PYTHONPATH=test python3 -m pytest
}
post_install() {
vlicense LICENSE
}