void-packages/srcpkgs/python3-trio/template

32 lines
1.2 KiB
Bash

# Template file for 'python3-trio'
pkgname=python3-trio
version=0.24.0
revision=1
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=ffa09a74a6bf81b84f8613909fb0beaee84757450183a7a2e0b47b455c0cac5d
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
}