mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-07 06:32:29 +01:00
33 lines
905 B
Plaintext
33 lines
905 B
Plaintext
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-websockets
|
|
_pkgname=websockets
|
|
pkgver=7.0
|
|
pkgrel=0
|
|
pkgdesc="An implementation of the WebSocket Protocol (RFC 6455)"
|
|
url="https://websockets.readthedocs.io"
|
|
arch="all"
|
|
license="BSD"
|
|
options="!check" # tox is in testing
|
|
makedepends="python3-dev py3-setuptools"
|
|
checkdepends="py3-tox"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
tox
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
python3 setup.py install --root="$pkgdir" --optimize=1
|
|
}
|
|
|
|
sha512sums="3f3493c920ca3e07c143fdc443a2b1da142dda52ca6291566a3042daee6f5f702a9b091411a915da3896fe0f48cf174d9ef6fd40cf09483bc90928ee67ebd438 websockets-7.0.tar.gz"
|