# -*- 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.1.0
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  7c93384d92ec12036a49cf437d4f989f9e3bb5a5 \
                    sha256  e83c7fe0ddecd8719c5b840080325aec0260acec86e9832899e377b91d65e90f \
                    size    2660060

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
    }
}
