# Template file for 'python3-quart' pkgname=python3-quart version=0.16.1 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-toml python3-blinker python3-itsdangerous python3-Jinja2 python3-Werkzeug" checkdepends="python3-pytest-asyncio python3-hypothesis python3-mock unzip $depends" short_desc="Python asyncio ASGI web framework with Flask API" maintainer="Andrew J. Hesford " license="MIT" homepage="https://gitlab.com/pgjones/quart" changelog="https://gitlab.com/pgjones/quart/-/blob/master/CHANGELOG.rst" distfiles="${homepage}/-/archive/${version}/${pkgname#*-}-${version}.tar.gz" checksum=7a2b31a1d31906228175fb867d487165dcf05094da531106faabbaf6d7d3bfe1 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 }