# -*- 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.3.0
revision            1

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  ba5acccfb45d945c50028a57fb708cdefd68df6a \
                    sha256  d7f52f36d231b80ee124cd216ffb19369aa168fc10095013c6b014a34d3ee9e5 \
                    size    50087

python.versions     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

    if {${python.version} < 311} {
        depends_lib-append  port:py${python.version}-backports-asyncio-runner
    }

    if {${python.version} < 313} {
        depends_lib-append  port:py${python.version}-typing_extensions
    }

    depends_test-append     port:py${python.version}-hypothesis

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