New package: python3-sniffio-1.2.0

This commit is contained in:
Arjan Mossel 2021-01-28 01:02:03 +01:00 committed by Érico Nogueira Rolim
parent 3813d16dd0
commit 08fac09fbc

View file

@ -0,0 +1,23 @@
# 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
}