blob: 8763b71d6e5cc6394155a1684ec2d035e3d7ebc7 (
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
|
# Maintainer: Kimiblock Moe
pkgname=python-websockets-git
pkgdesc="Library for building WebSocket servers and clients in Python"
url="https://github.com/python-websockets/websockets"
license=(unknown)
arch=(any)
pkgver=14.2.r41.g5b516463
pkgrel=1
makedepends=(python-build python-installer python-wheel git python-setuptools)
depends=('python>3.9')
provides=(python-websockets)
conflicts=(python-websockets)
source=(
"git+https://github.com/python-websockets/websockets.git"
)
md5sums=(
"SKIP"
)
function pkgver() {
cd "${srcdir}/websockets"
git describe --long --tags --abbrev=8 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
function build() {
cd "${srcdir}/websockets"
python -m build --wheel --no-isolation
}
function package() {
cd "${srcdir}/websockets"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|