[3.16] backports/websockify: new aport #815

Merged
forge merged 3 commits from websockify/3.16 into v3.16 2025-01-06 00:35:00 +00:00
Showing only changes of commit 91e5da05a1 - Show all commits

View file

@ -0,0 +1,43 @@
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=websockify
pkgver=0.12.0
pkgrel=0
pkgdesc="WebSockets support for any application/server"
url="https://github.com/novnc/websockify"
arch="noarch"
license="LGPL-3.0-or-later"
depends="
py3-jwcrypto
py3-numpy
py3-redis
py3-requests
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
source="$pkgname-$pkgver.tar.gz::https://github.com/novnc/websockify/archive/v$pkgver.tar.gz"
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 tests
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
616619a27b00af6621d9b2e3be415ff958fc226a08714302688b76690976805a22c120ff7f0eaca3d7f26fd5575971a96b5e27e5d20688c6edbb4eb84b896871 websockify-0.12.0.tar.gz
"