summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0fec89c774f116883eda699c02b21c076614be58 (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
# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
pkgname=python-xai-sdk
_name=${pkgname#python-}
pkgver=1.17.0
pkgrel=1
pkgdesc="The official Python SDK for xAI's APIs"
arch=(any)
url="https://github.com/xai-org/xai-sdk-python"
license=(Apache-2.0)
groups=()
depends=(python-aiohttp python-googleapis-common-protos python-grpcio python-opentelemetry-sdk python-packaging python-protobuf python-pydantic python-requests)
optdepends=()
makedepends=(python-build python-installer python-hatchling python-hatch-fancy-pypi-readme)
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=("https://files.pythonhosted.org/packages/source/x/xai_sdk/xai_sdk-$pkgver.tar.gz")
sha256sums=('ec695ad8b459a4080c01f6e7bb8abf38ed6a4ec69532bfdd73c4de14db1d485c')

build() {
    cd "$srcdir/xai_sdk-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/xai_sdk-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}