# -*- 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.30.0
revision            0

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

python.versions     39 310 311 312 313

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  8dbc38f009fef71321cefd187b1e3f4c06c6054e \
                    sha256  0781c857c0c81f8f51e0089929a26b5bb63d57f927728a5586f7e36171f064df \
                    size    593776

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
    }

    depends_test-append     port:py${python.version}-astor \
                            port:py${python.version}-async_generator \
                            port:py${python.version}-cryptography \
                            port:py${python.version}-ipython \
                            port:py${python.version}-mypy \
                            port:py${python.version}-mypy_extensions \
                            port:py${python.version}-openssl \
                            port:py${python.version}-trustme \
                            port:py${python.version}-pytest-trio

    # NOTE: tests are disbaled because trio supports only old pytest
    # See: https://github.com/python-trio/trio/pull/1893
}
