# -*- 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-trio
version             0.33.0
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             {Apache-2 MIT}

python.versions     310 311 312 313 314

maintainers         {@jandemter demter.de:jan} openmaintainer

description         Friendly Python library for async concurrency and I/O
long_description    The Trio project's goal is to produce a \
                    production-quality, permissively licensed, \
                    async/await-native I/O library for Python. Like all \
                    async libraries, its main purpose is to help you write \
                    programs that do multiple things at the same time with \
                    parallelized I/O.

homepage            https://trio.readthedocs.io

checksums           rmd160  977591397a90dc566cf8cc2cbdb7759b6417dab1 \
                    sha256  a29b92b73f09d4b48ed249acd91073281a7f1063f09caba5dc70465b5c7aa970 \
                    size    605109

if {${name} ne ${subport}} {
    depends_lib-append      port:py${python.version}-attrs \
                            port:py${python.version}-idna \
                            port:py${python.version}-outcome \
                            port:py${python.version}-sniffio \
                            port:py${python.version}-sortedcontainers

    if {${python.version} < 311} {
        depends_lib-append  port:py${python.version}-exceptiongroup
    }
}
