# -*- 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-env
version             1.1.5
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         pytest plugin to set environment variables

long_description    {*}${description} in pytest.ini or pyproject.toml file

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

distname            [string map {- _} ${python.rootname}]-${version}

checksums           rmd160  20bec45ee4d805c18f09155cc276cb924e45a044 \
                    sha256  91209840aa0e43385073ac464a554ad2947cc2fd663a9debf88d03b01e0cc1cf \
                    size    8911

python.versions     310 311 312
python.pep517_backend \
                    hatch

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-hatch-vcs
    depends_run-append \
                    port:py${python.version}-pytest

    if {${python.version} < 311} {
        depends_run-append \
                    port:py${python.version}-tomli
    }

    test.run        yes
}
