# -*- 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.25.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  ca2e76b5d88f671b7287eb2f2ccedda4de17a768 \
                    sha256  4f5a36f29e2b346d4b793bf3b983aba17ec19f24015bb811ee40815e98155417 \
                    size    974671

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
}
