# -*- 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-uvicorn
version             0.54.0
revision            0

platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         The lightning fast ASGI server.
long_description    {*}${description}

homepage            https://github.com/encode/uvicorn

checksums           rmd160  fdb8f3ea5d6469febdc9273a6a4d8421af211be4 \
                    sha256  a2e33cbfaa0306f8e6b0c13e0cb89d7d7a2da3e62b90c66e18c33d9807b28620 \
                    size    112283

python.versions     310 311 312 313 314
python.pep517_backend hatch

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-click \
                    port:py${python.version}-h11

    if {${python.version} eq "310"} {
        depends_lib-append \
                    port:py${python.version}-typing_extensions
    }
}
