11# Maintainer: Hoang Nguyen <[email protected] >22pkgname=py3-trio-websocket
33pkgver=0.11.1
4- pkgrel=1
4+ pkgrel=2
55pkgdesc=" WebSocket client and server implementation for py3-trio"
66url=" https://github.com/python-trio/trio-websocket"
7- # disable due to issues with py3-trio>=0.25
8- # https://github.com/python-trio/trio-websocket/issues/187
9- # arch="noarch"
7+ arch=" noarch"
108license=" MIT"
119depends="
1210 python3
@@ -25,7 +23,9 @@ checkdepends="
2523 py3-trustme
2624 "
2725subpackages=" $pkgname -pyc"
28- source=" $pkgname -$pkgver .tar.gz::https://github.com/python-trio/trio-websocket/archive/refs/tags/$pkgver .tar.gz"
26+ source=" $pkgname -$pkgver .tar.gz::https://github.com/python-trio/trio-websocket/archive/refs/tags/$pkgver .tar.gz
27+ trio-0.25.patch
28+ "
2929builddir=" $srcdir /${pkgname# py3-} -$pkgver "
3030
3131build () {
@@ -35,19 +35,9 @@ build() {
3535}
3636
3737check () {
38- # exception related tests fails with trio >= 0.25
39- # https://github.com/python-trio/trio-websocket/issues/187
40- local k=" not test_handshake_exception_before_accept"
41- k=" $k and not test_reject_handshake"
42- k=" $k and not test_reject_handshake_invalid_info_status"
43- k=" $k and not test_client_open_timeout"
44- k=" $k and not test_client_close_timeout"
45- k=" $k and not test_client_connect_networking_error"
46- k=" $k and not test_finalization_dropped_exception"
47-
4838 python3 -m venv --clear --without-pip --system-site-packages .testenv
4939 .testenv/bin/python3 -m installer .dist/* .whl
50- .testenv/bin/python3 -m pytest -k " $k "
40+ .testenv/bin/python3 -m pytest
5141}
5242
5343package () {
@@ -57,4 +47,5 @@ package() {
5747
5848sha512sums="
59494b0eb6f0c012cefedb69b97e9452ba979336fbe9f154799c4c68871b8013e728374e4872a2343ab4d27fa6e25e40c3063e681e80470123d37f13f531be4f6644 py3-trio-websocket-0.11.1.tar.gz
50+ 2b592515dd1e9ca8acf96a6ff654d9de1ae37365cb0a3376838ee9b14e58e4ce268f932974960f5e044bea7ab36cded806ad85878ac0231b2c410709bea54b67 trio-0.25.patch
6051"
0 commit comments