# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-sniffio
pkgver=1.3.1
pkgrel=1
pkgdesc="Sniff out which async library your code is running under"
url="https://github.com/python-trio/sniffio"
arch="noarch"
license="MIT OR Apache-2.0"
depends="py3-curio"
makedepends="
	py3-gpep517
	py3-installer
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/s/sniffio/sniffio-$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/sniffio-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
210b60224b54b20153059c3419951156fff41dc32876ed0b0640dd5dfb600ce324e0fc0b0c20a3467baa3e5383bf3157b99f22fd5bfe7ec3321aca6b166ce1af  sniffio-1.3.1.tar.gz
"
