backports/websockify: new aport
This commit is contained in:
parent
85fb50911f
commit
183ffc3d9c
1 changed files with 44 additions and 0 deletions
44
backports/websockify/APKBUILD
Normal file
44
backports/websockify/APKBUILD
Normal 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
|
||||
"
|
Loading…
Reference in a new issue