backports/websockify: new aport
Some checks failed
/ lint (pull_request) Failing after 37s
/ deploy-x86_64 (pull_request) Has been skipped
/ build-x86_64 (pull_request) Failing after 49s
/ deploy-aarch64 (pull_request) Has been skipped
/ build-aarch64 (pull_request) Failing after 1m11s

This commit is contained in:
Antoine Martin 2024-12-27 23:40:12 -05:00
parent 85fb50911f
commit 183ffc3d9c
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -0,0 +1,44 @@
# 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
"
subpackages="$pkgname-pyc"
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
"