# -*- 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-pytest-asyncio
version             1.2.0
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         {@jandemter demter.de:jan} openmaintainer

homepage            https://pytest-asyncio.readthedocs.io/

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            pytest_asyncio-${version}
checksums           rmd160  74a45caa403da0e1987eb3d867cd1ba92367161a \
                    sha256  c609a64a2a8768462d0c99811ddb8bd2583c33fd33cf7f21af1c142e824ffb57 \
                    size    50119

python.pep517       yes

python.versions     39 310 311 312 313 314

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

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

    depends_test-append     port:py${python.version}-flaky \
                            port:py${python.version}-hypothesis \
                            port:py${python.version}-mypy \
                            port:py${python.version}-pytest-trio \

    test.run                yes
    test.env-append         PYTHONPATH=${worksrcpath}
}
