# -*- 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-mcp
version             1.28.1
revision            0

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

description         Model Context Protocol SDK
long_description    {*}${description}

homepage            https://modelcontextprotocol.github.io/python-sdk

checksums           rmd160  530e710ac9d33b72ff597e6090754c427b75fe98 \
                    sha256  d51e36a5f5644faea4f85ea649bfffa6bc6c26770d42798ad6a3de3d2ba69683 \
                    size    638501

python.versions     313 314
python.pep517_backend hatch

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

    depends_run-append \
                    port:py${python.version}-anyio \
                    port:py${python.version}-cryptography \
                    port:py${python.version}-httpx \
                    port:py${python.version}-httpx-sse \
                    port:py${python.version}-jsonschema \
                    port:py${python.version}-pydantic \
                    port:py${python.version}-pydantic_settings \
                    port:py${python.version}-jwt \
                    port:py${python.version}-python-multipart \
                    port:py${python.version}-sse-starlette \
                    port:py${python.version}-starlette \
                    port:py${python.version}-typing_extensions \
                    port:py${python.version}-typing-inspection

    # optional dependencies
    depends_run-append \
                    port:py${python.version}-rich \
                    port:py${python.version}-typer \
                    port:py${python.version}-python-dotenv \
                    port:py${python.version}-websockets
}
