# -*- 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.27.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  709def4762728e220e3f34f4c23057946d70c79a \
                    sha256  0f47e1820f8f8f941466b39749eb1d1839a04caddca2bc60e9d46e8a99914924 \
                    size    608458

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
}
