# -*- 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             0.23.7
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         {@jandemter demter.de:jan} {@catap korins.ky:kirill} 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  ac2e6b14f783d997872e00bd64a36424f80bbf92 \
                    sha256  5f5c72948f4c49e7db4f29f2521d4031f1c27f86e57b046126654083d4770268 \
                    size    46296

python.pep517       yes

python.versions     38 39 310 311 312 313

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