summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4475a4674a011acb8975f938b78eac5a3e6746b3 (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
# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>

_name=pydantic-graph
pkgname=python-${_name}
pkgver=0.0.22
pkgrel=2
pkgdesc='Agent Framework / shim to use Pydantic with LLMs.'
arch=('any')
url='https://github.com/pydantic/pydantic-ai'
license=('MIT')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name//-/_}-${pkgver}.tar.gz")
sha256sums=('c72baca5c1ac7f5445a52bbe63c25c0d060c6b70b7de956700753b2401f470fe')
depends=('python>=3.9' 'python-httpx' 'python-logfire-api' 'python-pydantic')
makedepends=('python-hatchling')

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

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