# -*- 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-timeout
version             2.4.0
revision            0

supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         nomaintainer

description         py.test plugin to abort hanging tests
long_description    {*}${description}

homepage            https://github.com/pytest-dev/pytest-timeout

distname            pytest_timeout-${version}

checksums           rmd160  106db52ed179fed3ec356e5411211cb59f243902 \
                    sha256  7e68e90b01f9eff71332b25001f85c75495fc4e3a836701876183c4bcfd0540a \
                    size    17973

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    test.run    yes
    test.env    PYTHONPATH=${worksrcpath}/build/lib \
                PYTEST_PLUGINS=pytest_timeout

    pre-test {
        # See https://docs.pytest.org/en/stable/pythonpath.html
        delete ${test.dir}/${test.target}/__init__.py
    }
}