# -*- 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.23.2
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  772df73b0cfb272441d7e6b6fa29d6940bf94b4c \
                    sha256  4d3cc12d7727ba72b64d12d3cc7743124074c0a69f7b201512fc50c3e3f1569a \
                    size    40034

python.versions     39 310 311

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

    depends_lib-append \
                    port:py${python.version}-asgiref \
                    port:py${python.version}-click \
                    port:py${python.version}-h11

    python.pep517_backend   hatch
}
