# -*- 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             0.41.2
revision            0
categories-append   devel
platforms           {darwin any}
license             BSD
supported_archs     noarch

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

maintainers         nomaintainer

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/encode/starlette

checksums           rmd160  9988dcc2cb175c6eb17f863550d12e56a720ff7b \
                    sha256  9834fd799d1a87fd346deb76158668cfa0b0d56f85caefe8268e2d97c3468b62 \
                    size    2573867


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

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