blob: 9393a1f0f3d10b548fd70802407e3379612b34f5 (
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
|
# Maintainer: Rubin Simons <me@rubin55.org>
pkgname=python-agent-client-protocol
pkgver=0.11.0
pkgrel=2
pkgdesc='Python SDK for ACP clients and agents'
arch=('x86_64')
url='https://github.com/agentclientprotocol/python-sdk'
license=(Apache-2.0)
depends=(
"python"
"python-pydantic"
)
makedepends=(
"python-build"
"python-installer"
"python-pdm-backend"
)
checkdepends=(
"python-dotenv"
"python-pytest"
"python-pytest-asyncio"
"uv"
)
source=("git+${url}.git#tag=${pkgver}")
sha256sums=('9a9bd52214a669816e20236d84eaa8f4507cdeab5b0fbb0009fe2172fcd03467')
build() {
cd "python-sdk"
python -m build --wheel --no-isolation
}
check() {
cd "python-sdk"
#export UV_PYTHON_PREFERENCE=only-system
uv sync
uv run python -m pytest --doctest-modules
}
package() {
cd "python-sdk"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|