aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-autobahn/APKBUILD
blob: dcbf6d0e9b7ebc831116834363b56818ab76c964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-autobahn
pkgver=21.2.2
pkgrel=0
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="6dbad05437c92622709c140fd949706c8fbff62477cf9fa5a8bbcb8c5410661b660d548902ebec55b5a8d744cce12c9a229bceeb3d5e7e5dc4e50cb09f7e7ab7  autobahn-21.2.2.tar.gz"