void-packages/srcpkgs/python3-sniffio/template

24 lines
688 B
Bash

# Template file for 'python3-sniffio'
pkgname=python3-sniffio
version=1.2.0
revision=1
wrksrc="sniffio-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
checkdepends="python3-pytest python3-pytest-cov python3-curio"
short_desc="Sniff out which async library your code is running under"
maintainer="Arjan Mossel <arjanmossel@gmail.com>"
license="Apache-2.0, MIT"
homepage="https://github.com/python-trio/sniffio"
distfiles="${PYPI_SITE}/s/sniffio/sniffio-${version}.tar.gz"
checksum=c4666eecec1d3f50960c6bdf61ab7bc350648da6c126e3cf6898d8cd4ddcd3de
do_check() {
PYTHONPATH=$(cd build/lib* && pwd) pytest
}
post_install() {
vlicense LICENSE
}