blob: dd41eec8582b0d082484e485d1eb76907e794908 (
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
|
# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
_name=livekit-api
pkgname=python-${_name}
pkgver=0.8.1
pkgrel=2
pkgdesc='Access LiveKit server APIs and generate access tokens.'
arch=('any')
url='https://github.com/livekit/python-sdks/tree/main/livekit-api'
license=('Apache-2.0')
source=("https://files.pythonhosted.org/packages/source/l/${_name}/${_name//-/_}-${pkgver}.tar.gz")
sha256sums=('4cf491b575f059389c55139c7940f63e2f80a90a41326924d8703adec02bd76d')
depends=('python>=3.7' 'python-pyjwt' 'python-aiohttp' 'python-protobuf' 'python-types-protobuf' 'python-livekit-protocol')
makedepends=('python-setuptools' 'python-wheel')
checkdepends=('python-pytest')
build() {
cd "${srcdir}"/${_name//-/_}-${pkgver}
python -m build --wheel --no-isolation
}
check() {
cd "${srcdir}"/${_name//-/_}-${pkgver}
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
test-env/bin/python -m pytest "${pytest_options[@]}" tests
}
package() {
cd "${srcdir}"/${_name//-/_}-$pkgver
python setup.py install --root="${pkgdir}" --optimize=1
}
|