aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-autobahn/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-autobahn/APKBUILD')
-rw-r--r--community/py3-autobahn/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/py3-autobahn/APKBUILD b/community/py3-autobahn/APKBUILD
new file mode 100644
index 0000000000..529e8d82cc
--- /dev/null
+++ b/community/py3-autobahn/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=py3-autobahn
+pkgver=21.3.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"
+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 --prefix=/usr --root="$pkgdir"
+
+ find "$pkgdir" -name "test" -type d -exec rm -r {} +
+}
+
+sha512sums="dd6bf6eba6f2880860c6fa42e3925bb15d36bfb9d2354ddeb0165972848e81a308723b7f9dcd6ec3426b6286f71cb2da453590810e5d891523d92acf9fd64c52 autobahn-21.3.1.tar.gz"