1
1
# Maintainer: Hoang Nguyen <[email protected] >
2
2
pkgname=py3-trio-websocket
3
3
pkgver=0.11.1
4
- pkgrel=1
4
+ pkgrel=2
5
5
pkgdesc=" WebSocket client and server implementation for py3-trio"
6
6
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"
10
8
license=" MIT"
11
9
depends="
12
10
python3
@@ -25,7 +23,9 @@ checkdepends="
25
23
py3-trustme
26
24
"
27
25
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
+ "
29
29
builddir=" $srcdir /${pkgname# py3-} -$pkgver "
30
30
31
31
build () {
@@ -35,19 +35,9 @@ build() {
35
35
}
36
36
37
37
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
-
48
38
python3 -m venv --clear --without-pip --system-site-packages .testenv
49
39
.testenv/bin/python3 -m installer .dist/* .whl
50
- .testenv/bin/python3 -m pytest -k " $k "
40
+ .testenv/bin/python3 -m pytest
51
41
}
52
42
53
43
package () {
@@ -57,4 +47,5 @@ package() {
57
47
58
48
sha512sums="
59
49
4b0eb6f0c012cefedb69b97e9452ba979336fbe9f154799c4c68871b8013e728374e4872a2343ab4d27fa6e25e40c3063e681e80470123d37f13f531be4f6644 py3-trio-websocket-0.11.1.tar.gz
50
+ 2b592515dd1e9ca8acf96a6ff654d9de1ae37365cb0a3376838ee9b14e58e4ce268f932974960f5e044bea7ab36cded806ad85878ac0231b2c410709bea54b67 trio-0.25.patch
60
51
"
0 commit comments