# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        dbader pytest-mypy 0.8.0 v
revision            0
name                py-${github.project}
fetch.type          git

platforms           darwin
license             MIT
maintainers         nomaintainer
supported_archs     noarch

description         Mypy static type checker plugin for pytest
long_description    {*}${description}

checksums           rmd160  20ed28c953801533084157fac14f55c0a61ba6d4 \
                    sha256  0cc6f30f9ec05c88fb2e56cba8881a53ba95f9a2e6622e18a3f16eb58aba9c99 \
                    size    11872

python.versions     37 38 39

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

    depends_run-append \
                    port:py${python.version}-attrs \
                    port:py${python.version}-filelock \
                    port:py${python.version}-mypy \
                    port:py${python.version}-pytest

    pre-test {
        test.env-append \
                    PYTHONPATH=[glob -nocomplain ${build.dir}/build/lib*]
    }

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target     tests

    livecheck.type  none
}
