aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-wsproto/APKBUILD
blob: 98a99a2f3f09c3abc582cce264e02b303d866352 (plain) (blame)
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
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-wsproto
_pkgname=wsproto
pkgver=0.15.0
pkgrel=0
pkgdesc="Sans-IO WebSocket protocol implementation"
url="https://github.com/python-hyper/wsproto"
license="MIT"
arch="noarch"
depends="python3 py3-h11"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$_pkgname-$pkgver.tar.gz::https://github.com/python-hyper/wsproto/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
}

sha512sums="9684966be7160967603800e8b793259e4f83e128b3d407d32665eed1170dc7a730fe2245ddbb7f8fa1b1dea9ce77e74a8e23827187544696662848ccfe3b81cc  wsproto-0.15.0.tar.gz"