From f522fdc1402e2dbb526f613c6471876f06d3bd64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 5 Aug 2024 14:43:21 -0300 Subject: [PATCH] python3-trio: update to 0.26.1. --- .../patches/fix-for-attrs-24.1.0.patch | 24 +++++++++++++++++++ srcpkgs/python3-trio/template | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/python3-trio/patches/fix-for-attrs-24.1.0.patch diff --git a/srcpkgs/python3-trio/patches/fix-for-attrs-24.1.0.patch b/srcpkgs/python3-trio/patches/fix-for-attrs-24.1.0.patch new file mode 100644 index 00000000000..c4e36205c9c --- /dev/null +++ b/srcpkgs/python3-trio/patches/fix-for-attrs-24.1.0.patch @@ -0,0 +1,24 @@ +Cherry picked from: https://github.com/python-trio/trio/pull/3058 + +From 0152c3efcffe7d9b77b2a765e6992c6685b63499 Mon Sep 17 00:00:00 2001 +From: A5rocks +Date: Mon, 5 Aug 2024 21:29:33 +0900 +Subject: [PATCH 2/5] Fix deprecation warning from attrs + +--- + src/trio/_threads.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/trio/_threads.py b/src/trio/_threads.py +index a04b73729..0f0e58500 100644 +--- a/src/trio/_threads.py ++++ b/src/trio/_threads.py +@@ -139,7 +139,7 @@ def current_default_thread_limiter() -> CapacityLimiter: + # system; see https://github.com/python-trio/trio/issues/182 + # But for now we just need an object to stand in for the thread, so we can + # keep track of who's holding the CapacityLimiter's token. +-@attrs.frozen(eq=False, hash=False, slots=False) ++@attrs.frozen(eq=False, slots=False) + class ThreadPlaceholder: + name: str + diff --git a/srcpkgs/python3-trio/template b/srcpkgs/python3-trio/template index add9536d3aa..f73daaa4a81 100644 --- a/srcpkgs/python3-trio/template +++ b/srcpkgs/python3-trio/template @@ -1,6 +1,6 @@ # Template file for 'python3-trio' pkgname=python3-trio -version=0.24.0 +version=0.26.1 revision=1 build_style=python3-pep517 # Needs astor (https://pypi.org/project/astor/) @@ -16,7 +16,7 @@ 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 +checksum=6d2fe7ee656146d598ec75128ff4a2386576801b42b691f4a91cc2c18508544a make_check_pre="env PY_IGNORE_IMPORTMISMATCH=1" if [ "$XBPS_TARGET_LIBC" = "musl" ]; then