blob: a7a2a8493f75a44ff7a403b3671564a60dd48e3f (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
_name=mistralai
pkgname=python-$_name
pkgver=3.7.0
pkgrel=1
pkgdesc="Python Client SDK for the Mistral AI API."
arch=('any')
url="https://github.com/mistralai/client-python"
license=('MIT')
depends=('python'
'python-httpx2'
'python-pydantic'
'python-dateutil'
'python-typing-inspection'
'python-opentelemetry-api'
'python-opentelemetry-semantic-conventions'
'python-jsonpath-python')
makedepends=('python-hatchling'
'python-build'
'python-installer')
checkdepends=('python-pyyaml'
'python-msgpack'
'python-opentelemetry-instrumentation-httpx'
'python-opentelemetry-sdk'
'python-opentelemetry-exporter-otlp-proto-http'
'python-pytest'
'python-pytest-asyncio'
'python-mcp'
'python-griffe'
'python-authlib'
'python-websockets'
'python-zstandard'
'python-google-auth')
optdepends=('python-google-auth: gcp'
'python-requests: gcp'
'python-mcp: mcp'
'python-mcp: agents'
'python-griffe: agents'
'python-authlib: agents'
'python-websockets: realtime'
'python-opentelemetry-sdk: telemetry'
'python-opentelemetry-exporter-otlp-proto-http: telemetry'
'python-azure-storage-blob: workflow_payload_offloading_azure'
'python-aiohttp: workflow_payload_offloading_azure'
'python-azure-identity: workflow_payload_offloading_azure'
'python-gcloud-aio-storage: workflow_payload_offloading_gcs'
'python-aioboto3: workflow_payload_offloading_s3'
'python-cryptography: workflow_payload_encryption'
'python-msgpack: workflow_payload_compression'
'python-zstandard: workflow_payload_compression')
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('87e5ec373618bcb1d454051b8e33a82185b40896e202a3a4f83fa3782789737c')
build() {
cd "$srcdir"/client-python-$pkgver
python -m build --wheel --no-isolation
}
check(){
local pytest_options=(
-vv
--disable-warnings
)
cd "$srcdir"/client-python-$pkgver
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
test-env/bin/python -P -m pytest "${pytest_options[@]}" tests
}
package() {
cd "$srcdir"/client-python-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}
|