# -*- 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.3.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  e2d8cd0b666cc72abd44fbf37ea15d4aa2d7cf49 \
                    sha256  05d0213193f2fbaae60e2ecb593b4add4262ad4e46536b54abe36f11a71724e0 \
                    size    2703240

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