mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-websockets: upgrade to 4.0.1; modernize
This commit is contained in:
parent
e2ab855691
commit
e43b9db2bd
@ -2,26 +2,31 @@
|
|||||||
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
||||||
pkgname=py3-websockets
|
pkgname=py3-websockets
|
||||||
_pkgname=websockets
|
_pkgname=websockets
|
||||||
pkgver=3.2
|
pkgver=4.0.1
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
pkgdesc="An implementation of the WebSocket Protocol (RFC 6455)"
|
pkgdesc="An implementation of the WebSocket Protocol (RFC 6455)"
|
||||||
url="https://websockets.readthedocs.io"
|
url="https://websockets.readthedocs.io"
|
||||||
arch="noarch"
|
arch="all"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
|
options="!check" # tox is in testing
|
||||||
makedepends="python3-dev"
|
makedepends="python3-dev"
|
||||||
|
checkdepends="py3-tox"
|
||||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/$_pkgname-$pkgver
|
builddir="$srcdir"/$_pkgname-$pkgver
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
python3 setup.py build || return 1
|
python3 setup.py build
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
tox
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
python3 setup.py install --root="$pkgdir" --optimize=1 || return 1
|
python3 setup.py install --root="$pkgdir" --optimize=1
|
||||||
}
|
}
|
||||||
|
|
||||||
md5sums="c1842c03d14169082e065a109fe1cb2c websockets-3.2.tar.gz"
|
sha512sums="a60a453f33f1005c7ec7cee10f6ba6cca18628306de51872ad5a910f12f39831049f3a67ff4c3cc62efce47ce030b9e9d075d4418e8da2dcc594b8824ce21dfb websockets-4.0.1.tar.gz"
|
||||||
sha256sums="b536827d433a79e85108becdac0b0909e7ce02c3613df53da6d96aee950b50b5 websockets-3.2.tar.gz"
|
|
||||||
sha512sums="fc8e3318139174faf6f6fc3065ecec536d8ebc5d328081c82371bfaf7538a4e67c43d5460d06852191532b105c0494adf7b18fd36ec55772d552f83737e25c1c websockets-3.2.tar.gz"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user