blob: 958ce27d680625f29ef1b868cac28080c5d3cd65 (
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: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
_name=phonic
pkgname=python-$_name
pkgver=0.32.10
pkgrel=1
pkgdesc='The Phonic Python library provides convenient access to the Phonic APIs from Python.'
arch=('any')
url='https://github.com/Phonic-Co/phonic-python'
license=('MIT')
depends=('python' 'python-httpx' 'python-pydantic' 'python-pydantic-core' 'python-typing_extensions' 'python-websockets')
makedepends=('python-poetry-core' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-xdist' 'python-dateutil')
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('b64d9004a6244277bad99802d146d4ace45052304ede43f0090416be72a227c4')
build() {
cd "$srcdir"/$_name-python-$pkgver
python -m build --wheel --no-isolation
}
check() {
local pytest_options=(
-vv
--disable-warnings
)
cd "$srcdir"/$_name-python-$pkgver
PYTHONPATH=$PWD/src pytest "${pytest_options[@]}" tests
}
package() {
cd "$srcdir"/$_name-python-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}
|