# -*- 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.13.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  0dd8ec4069736549167143bc9b2db3686e1c5e60 \
                    sha256  3d5f4e5012dc0a4b0e9f76268ce8afd734191b48dbccbf221ac7d030d9e8fcae \
                    size    839266

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
}
