# -*- 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-starlette
version             1.4.1
revision            0

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

description         The little ASGI library that shines.
long_description    Starlette is a lightweight ASGI framework/toolkit, \
                    which is ideal for building high performance \
                    asyncio services.

homepage            https://github.com/Kludex/starlette

checksums           rmd160  29df1a825da2e824b543f55132052b5b260de6b7 \
                    sha256  b7332de6e9375593a29ba9eee1e6ecfeb3eb2043e2e19a13b4b71da73ff35540 \
                    size    2709041

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

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

    if {${python.version} < 313} {
        depends_lib-append \
                    port:py${python.version}-typing_extensions
    }
}
