# -*- 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.8.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  b2a9da9f0397d4b2d7ef970c8263424c2936c46a \
                    sha256  4142f373fda9f57381e27ab085e74d086f679cd6bf1a1a6d60d7d72370e8c347 \
                    size    13362

python.versions     35 36

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

    test.run                yes
    test.cmd                py.test-${python.branch}
    test.target

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