34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
|
|
# Contributor: Kyle Keen <keenerd@gmail.com>
|
|
|
|
pkgname=python-wsproto
|
|
pkgver=1.2.0
|
|
pkgrel=5
|
|
pkgdesc="WebSockets state-machine based protocol implementation"
|
|
url="https://github.com/python-hyper/wsproto"
|
|
license=('MIT')
|
|
arch=(any)
|
|
depends=('python-h11')
|
|
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
|
|
checkdepends=('python-pytest')
|
|
source=("https://pypi.io/packages/source/w/wsproto/wsproto-$pkgver.tar.gz")
|
|
sha512sums=('43270687a1cfb5f35423c527de5b9db7ee2ddf27d416f47358386c1c94dc3f836a601f300bf66441c4b90130e6e6f502fb29dfeb2374dd76aefa19cfbb70a372')
|
|
|
|
build() {
|
|
cd wsproto-$pkgver
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
check() {
|
|
cd wsproto-$pkgver
|
|
PYTHONPATH="$PWD"/src pytest
|
|
}
|
|
|
|
package() {
|
|
cd wsproto-$pkgver
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|