# -*- 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.14.0 v
name                py-pytest-asyncio
categories-append   devel
platforms           darwin
supported_archs     noarch
license             Apache-2
maintainers         {@jandemter demter.de:jan} 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  552d2e17a62eee56168fef73d67f8219660cffe5 \
                    sha256  504d4179e83d532b11fa0a51bfa0737abaf1aac315b6f033e4dfc918ef27bc65 \
                    size    14803

python.versions     36 37 38 39

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

    depends_test-append     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
}

subport py35-${python.rootname} {
    replaced_by py36-${python.rootname}
    PortGroup obsolete 1.0
}
