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

github.setup        pytest-dev pytest-asyncio 0.10.0 v
name                py-pytest-asyncio
categories-append   devel
platforms           darwin
supported_archs     noarch
license             Apache-2
maintainers         nomaintainer

description         pytest support for asyncio
long_description    \
    asyncio code is usually written in the form of coroutines, which makes it \
    slightly more difficult to test using normal testing tools. pytest-asyncio \
    provides useful fixtures and markers to make testing easier.

distname            ${python.rootname}-${version}

checksums           rmd160  17544d7f44bf1160881409e306622bb7ec971489 \
                    sha256  082aca0ee895e33460aa4c32bd2922ab7f7dcdbe5417b40d4700457ab3680b65 \
                    size    13983

python.versions     36 37

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

    depends_lib-append      port:py${python.version}-pytest

    # testing requires this port already installed and the trace mode not enabled
    test.run                yes
    test.cmd                py.test-${python.branch}
    test.target

    livecheck.type  none
} else {
    livecheck.type  pypi
}