1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/community/py3-websocket-client/APKBUILD
psykose b71032c356 */*: invoke -m venv with --without-pip
we never use pip in the venv manually made for tests-
this might break 1-2 things unexpectedly, but

- those should be looked at anyway
- this has a severe speedup- even on a desktop machine with nvme, this
  makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small
  optimisation.
2023-02-09 22:55:20 +01:00

42 lines
1.1 KiB
Text

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-websocket-client
pkgver=1.5.1
pkgrel=0
pkgdesc="WebSocket client library for Python"
url="https://github.com/websocket-client/websocket-client"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-python-socks
"
source="https://github.com/websocket-client/websocket-client/archive/v$pkgver/websocket-client-v$pkgver.tar.gz"
builddir="$srcdir/websocket-client-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages testenv
testenv/bin/python3 -m installer dist/*.whl
testenv/bin/python3 -m unittest discover
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
rm -r "$pkgdir"/usr/lib/python3*/site-packages/websocket/tests
}
sha512sums="
814f900f3e9730e7f010ecf66d91654179a4805848c2b4c06caa80b773a811d6440fc568e87a84e036f073680089ade3b65c0b34aa7b76641e10d224dacc4d56 websocket-client-v1.5.1.tar.gz
"