# -*- 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-outcome
version             1.3.0.post0
revision            0

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

python.versions     39 310 311 312 313 314

maintainers         {@jandemter demter.de:jan} openmaintainer

description         Capture the outcome of Python function calls
long_description    {*}${description}. Extracted from the Trio project.

homepage            https://github.com/python-trio/outcome

checksums           rmd160  bdaea4357a03aba7178172f9bdf0e9578b83648b \
                    sha256  9dcf02e65f2971b80047b377468e72a268e15c0af3cf1238e6ff14f7f91143b8 \
                    size    21060

if {${name} ne ${subport}} {
    depends_run-append      port:py${python.version}-attrs

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

    test.run        yes
}
