From 823053d9fc5893616b30ec6cedc4994dde8fb52c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 17 Dec 2023 08:34:00 -0300 Subject: [PATCH] python3-trio: update to 0.24.0. --- srcpkgs/python3-trio/template | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/srcpkgs/python3-trio/template b/srcpkgs/python3-trio/template index 77c693559c4..add9536d3aa 100644 --- a/srcpkgs/python3-trio/template +++ b/srcpkgs/python3-trio/template @@ -1,26 +1,30 @@ # Template file for 'python3-trio' pkgname=python3-trio -version=0.22.0 -revision=2 -build_style=python3-module -hostmakedepends="python3-setuptools" -depends="python3-async_generator python3-attrs python3-idna +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="python3-pytest python3-pytest-cov python3-ipython python3-pylint - python3-jedi black python3-mypy python3-flake8 - python3-async_generator 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 " 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=ce68f1c5400a47b137c5a4de72c7c901bd4e7a24fbdebfe9b41de8c6c04eaacf -# Tests are disabled as they also need the following to be packaged: -# pyOpenSSL https://pypi.org/project/pyOpenSSL/ -# trustme https://pypi.org/project/trustme/ -# astor https://pypi.org/project/astor/ -make_check=no +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