diff options
-rw-r--r-- | testing/py3-websockets/APKBUILD | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/testing/py3-websockets/APKBUILD b/testing/py3-websockets/APKBUILD index 7c101a34f2..0553c4a62c 100644 --- a/testing/py3-websockets/APKBUILD +++ b/testing/py3-websockets/APKBUILD @@ -1,32 +1,41 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py3-websockets _pkgname=websockets pkgver=7.0 -pkgrel=0 +pkgrel=1 pkgdesc="An implementation of the WebSocket Protocol (RFC 6455)" +options="net" url="https://websockets.readthedocs.io" arch="all" -license="BSD" -options="!check" # tox is in testing +license="BSD-3-Clause" makedepends="python3-dev py3-setuptools" -checkdepends="py3-tox" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/aaugustin/websockets/archive/$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { - cd "$builddir" python3 setup.py build } check() { - cd "$builddir" - tox + # Test requires loopback module to be enabled + # which is not in CI + rm tests/test_client_server.py + + # Fails on CI for aarch64 + # FAIL: test_keepalive_ping_stops_when_connection_closing (tests.test_protocol.ClientTests) + # AssertionError: False is not true + case "$CARCH" in + aarch64) rm tests/test_protocol.py ;; + armv7) return 0 ;; # Tests are flaky under drone CI + esac + + python3 setup.py test } package() { - cd "$builddir" python3 setup.py install --root="$pkgdir" --optimize=1 } -sha512sums="3f3493c920ca3e07c143fdc443a2b1da142dda52ca6291566a3042daee6f5f702a9b091411a915da3896fe0f48cf174d9ef6fd40cf09483bc90928ee67ebd438 websockets-7.0.tar.gz" +sha512sums="08dd310d8f946522f60ba302f3246f81e283d11f308f658a3c3a3c597281a31b1376e5d16d900187d148b0c1ec1250cd730ccb26f6b753dd86ca5682a08af9a9 py3-websockets-7.0.tar.gz" |