# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-pydantic-ai-slim
version             2.5.0
revision            0

categories-append   llm devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Agent Framework / shim to use Pydantic with LLMs, slim \
                    package
long_description    {*}${description}

homepage            https://github.com/pydantic/pydantic-ai/tree/main/pydantic_ai_slim

distname            pydantic_ai_slim-${version}

checksums           rmd160  5d54343d2c9f64d3a001438eb58cd9cfa5298d3f \
                    sha256  cec48e93ac45a3e5c20e3f7f27469fc7267b9f99b5b0433331465dc25a0d01e3 \
                    size    769832

python.versions     313 314
python.pep517_backend hatch

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-uv-dynamic-versioning

    depends_lib-append \
                    port:py${python.version}-genai-prices \
                    port:py${python.version}-griffelib \
                    port:py${python.version}-httpx \
                    port:py${python.version}-opentelemetry-api \
                    port:py${python.version}-pydantic \
                    port:py${python.version}-pydantic-graph \
                    port:py${python.version}-typing-inspection
}
