aports/community/py3-autobahn/APKBUILD
2023-04-20 01:20:52 +00:00

41 lines
1.0 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-autobahn
pkgver=22.12.1
pkgrel=1
pkgdesc="WebSocket client & server library, WAMP real-time framework"
url="https://crossbar.io/autobahn/"
arch="noarch"
license="MIT"
depends="
py3-txaio
py3-twisted
py3-sphinxcontrib-images
py3-pynacl
python3
"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/a/autobahn/autobahn-$pkgver.tar.gz"
options="!check" # Fail to run https://github.com/crossbario/autobahn-python/issues/1117
builddir="$srcdir/autobahn-$pkgver"
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$PWD/build/lib" pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
find "$pkgdir" -name "test" -type d -exec rm -r {} +
}
sha512sums="
10b3eec220a78b21aa393c9a721a9efb06b2623910ebb19dcf58c3966912cb9c5bbe5fc04d9f1072711a209a6a0168d7ba3a6147c1fc9a7db46bd528cc380dd0 autobahn-22.12.1.tar.gz
"