mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
this doesn't really "optimise" the python or do much to improve performance. it's identical to running python with -O or setting PYTHONOPTIMISE= in the environment. doing it here just doubles the disk space for the pre-cached files generated by python on startup with optimisations
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# 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.4
|
|
pkgrel=2
|
|
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
|
|
skip-reconnect-test.patch
|
|
"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=30
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
087b1920ff26e21b8d3b80b53249d44b841fc45a4992df1ad725112404f724a41aaa2d759a2bd521dfe337459f8bf0d2ae048c423489f527c68f6825f928b582 py3-websockets-10.4.tar.gz
|
|
0849fa337f6a00297774cc3a3dd61497bbc99dc3b12632a385056a82e50fd04bf057068eeef6f9b705c257e3017b127ee38183461615d09549145889767bdc0b skip-reconnect-test.patch
|
|
"
|