# -*- 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-trio-websocket
python.rootname     trio_websocket
version             0.12.2
license             MIT
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer

description         WebSocket client and server implementation for Python Trio

long_description    This library implements both server and client aspects of \
                    the the WebSocket protocol, striving for safety, \
                    correctness, and ergonomics.

homepage            https://trio-websocket.readthedocs.io

checksums           rmd160  9c4c8c6aec44f72585a39252d59f033ec563c967 \
                    sha256  22c72c436f3d1e264d0910a3951934798dcc5b00ae56fc4ee079d46c7cf20fae \
                    size    33549

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    if {${python.version} < 311} {
        depends_lib-append  port:py${python.version}-exceptiongroup
    }

    depends_lib-append  port:py${python.version}-trio \
                        port:py${python.version}-wsproto
}
