39 lines
1.5 KiB
Bash
39 lines
1.5 KiB
Bash
# Template file for 'python3-anyio'
|
|
pkgname=python3-anyio
|
|
version=4.4.0
|
|
revision=1
|
|
build_style=python3-pep517
|
|
# This file needs python module `exceptiongroup`
|
|
make_check_args="--ignore tests/test_taskgroups.py"
|
|
hostmakedepends="python3-setuptools_scm python3-wheel"
|
|
depends="python3-sniffio python3-idna"
|
|
checkdepends="$depends python3-pytest-mock python3-hypothesis
|
|
python3-psutil python3-trio python3-trustme python3-uvloop"
|
|
short_desc="High level asynchronous concurrency and networking framework"
|
|
maintainer="dkwo <npiazza@disroot.org>, Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
|
license="MIT"
|
|
homepage="https://github.com/agronholm/anyio"
|
|
changelog="https://raw.githubusercontent.com/agronholm/anyio/master/docs/versionhistory.rst"
|
|
distfiles="${PYPI_SITE}/a/anyio/anyio-${version}.tar.gz"
|
|
checksum=5aadc6a1bbb7cdb0bede386cac5e2940f5e2ff3aa20277e991cf028e0585ce94
|
|
|
|
if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ]; then
|
|
# these tests fail on CI
|
|
_test1="(TestTCPListener)and(-ipv6)"
|
|
_test2="(test_iterate)or(test_extra)or(test_reuse)or(test_send_receive)"
|
|
_test2="(TestUDPSocket)and($_test2)and(-ipv6)"
|
|
_test3="(test_iterate)or(test_receive)or(test_reuse)or(test_send)"
|
|
_test3="(TestConnectedUDPSocket)and($_test3)and(-ipv6)"
|
|
_test4="test_bind_link_local"
|
|
make_check_args+=" -k not(($_test1)or($_test2)or($_test3)or($_test4))"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
# getaddrinfo() always returns canonname in musl 1.1
|
|
make_check_args+=" --deselect tests/test_sockets.py::test_getaddrinfo_ipv6addr"
|
|
fi
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|