# -*- 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-lazy-fixtures
version             1.4.1
revision            0

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

description         Use pytest fixtures in @pytest.mark.parametrize
long_description    {*}${description}, through lf() and lfc(). This is a \
                    separate project from pytest-lazy-fixture \
                    (py-pytest-lazy-fixture).

homepage            https://github.com/dev-petrov/pytest-lazy-fixtures

distname            pytest_lazy_fixtures-${version}

checksums           md5     02819b8926a790dd54d6d2ff6c50545e \
                    sha1    deece2c9e0bc65e259228d02db828eaccd9b82cb \
                    rmd160  20c78db1f03ef28e4446c95821da11db1ef6c562 \
                    sha256  8684abfd4914ea01f1e2f7b24524739344421d8f3f12286fb3100fb5681e1181 \
                    size    63077

python.versions     310 311 312 313 314 315
python.pep517_backend   hatch

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

    # tests/tests.py imports pytest-fixture-classes, which is not in
    # MacPorts; skip that one test function (two cases) when it is missing,
    # so the rest of the suite runs.
    patchfiles      patch-tests-optional-fixture-classes.diff

    test.run        yes
    # test_deadfixtures_support.py needs pytest-deadfixtures (not in MacPorts)
    test.args       --ignore=tests/test_deadfixtures_support.py
    test.env-append PYTHONPATH=${worksrcpath}
}
