mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-22 22:21:19 +02:00
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
# 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=10.2
|
|
pkgrel=0
|
|
pkgdesc="An implementation of the WebSocket Protocol (RFC 6455)"
|
|
options="net"
|
|
url="https://websockets.readthedocs.io"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
makedepends="python3-dev py3-setuptools"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/aaugustin/websockets/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
# Tests fails because of legacy code
|
|
rm -f tests/legacy/test_client_server.py tests/legacy/test_auth.py
|
|
|
|
export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=30
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --root="$pkgdir" --optimize=1
|
|
}
|
|
|
|
sha512sums="
|
|
b8c7fbe627e1c411112b0d66e561aa9bcf15d6de07a9cccd203211e0e6af49762774e09f8c5f4523fe214731ae7a96ed4b63639c7ed66fee062cdda3e5fba350 py3-websockets-10.2.tar.gz
|
|
"
|