# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        encode starlette 0.14.2
revision            0
name                py-${github.project}
categories-append   devel

license             MIT
maintainers         nomaintainer
platforms           darwin
supported_archs     noarch

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.

checksums           rmd160  561ba166483399c1dc2f3a2fa04e223d1ef18a5e \
                    sha256  9713f2ba7b3528013392947cfff9c44bb96e9b987b0d1eb687600a6c99264baa \
                    size    438361

python.versions     37 38 39

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

    depends_run-append \
                    port:py${python.version}-aiofiles \
                    port:py${python.version}-graphene

    depends_test-append \
                    port:py${python.version}-databases \
                    port:py${python.version}-pytest

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target     tests
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
