# -*- 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.9.0 v
name                py-pytest-asyncio
categories-append   devel
platforms           darwin
supported_archs     noarch
license             Apache-2
maintainers         {yan12125 @yan12125} openmaintainer

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  bee15024040ff60b288f4a1050ac86fdead059f0 \
                    sha256  536b303d0a5fe33a65c95a52cdeaf36db9bf8ab9c27df5f00c877ca6922945f9 \
                    size    13235

python.versions     35 36 37

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

    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
}