# Template file for 'python3-trio'
pkgname=python3-trio
version=0.26.1
revision=2
build_style=python3-pep517
# Needs astor (https://pypi.org/project/astor/)
make_check_args="--ignore src/trio/_tests/tools/test_gen_exports.py"
hostmakedepends="python3-setuptools python3-wheel"
depends="python3-attrs python3-idna
 python3-outcome python3-sniffio python3-sortedcontainers"
checkdepends="$depends python3-pytest iana-etc pylint python3-astroid
 python3-async_generator python3-jedi python3-openssl python3-trustme"
short_desc="Friendly Python library for async concurrency and I/O"
maintainer="Arjan Mossel <arjanmossel@gmail.com>"
license="Apache-2.0, MIT"
homepage="https://github.com/python-trio/trio"
changelog="https://raw.githubusercontent.com/python-trio/trio/master/docs/source/history.rst"
distfiles="${PYPI_SITE}/t/trio/trio-${version}.tar.gz"
checksum=6d2fe7ee656146d598ec75128ff4a2386576801b42b691f4a91cc2c18508544a
make_check_pre="env PY_IGNORE_IMPORTMISMATCH=1"

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
	# pthread_getname_np(3) n/a in musl 1.1
	make_check_args+="
	--deselect src/trio/_tests/test_threads.py::test_named_thread_os
	"
fi

post_install() {
	vlicense LICENSE
}
