summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d654a02d4fa4035bcf0f5af3a7bafbc780a5e80d (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.1
pkgrel=1
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=('185eab92470dbf1b47561fc84a94f0bb85f4d326350f0bbdb1c8402400042cf0')

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
}