Skip to content

Commit 22c3e57

Browse files
sertonixomni
authored andcommitted
community/py3-trio-websocket: fix build with py3-trio>=0.25
Ref python-trio/trio-websocket#188
1 parent b31d35d commit 22c3e57

File tree

2 files changed

+387
-16
lines changed

2 files changed

+387
-16
lines changed

community/py3-trio-websocket/APKBUILD

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# Maintainer: Hoang Nguyen <[email protected]>
22
pkgname=py3-trio-websocket
33
pkgver=0.11.1
4-
pkgrel=1
4+
pkgrel=2
55
pkgdesc="WebSocket client and server implementation for py3-trio"
66
url="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"
108
license="MIT"
119
depends="
1210
python3
@@ -25,7 +23,9 @@ checkdepends="
2523
py3-trustme
2624
"
2725
subpackages="$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+
"
2929
builddir="$srcdir/${pkgname#py3-}-$pkgver"
3030

3131
build() {
@@ -35,19 +35,9 @@ build() {
3535
}
3636

3737
check() {
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

5343
package() {
@@ -57,4 +47,5 @@ package() {
5747

5848
sha512sums="
5949
4b0eb6f0c012cefedb69b97e9452ba979336fbe9f154799c4c68871b8013e728374e4872a2343ab4d27fa6e25e40c3063e681e80470123d37f13f531be4f6644 py3-trio-websocket-0.11.1.tar.gz
50+
2b592515dd1e9ca8acf96a6ff654d9de1ae37365cb0a3376838ee9b14e58e4ce268f932974960f5e044bea7ab36cded806ad85878ac0231b2c410709bea54b67 trio-0.25.patch
6051
"

0 commit comments

Comments
 (0)