# -*- 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-mypy
version             0.10.3
revision            1

# stealth update recipe, due to swith to PyPI to fix build failure
dist_subdir         ${name}/${version}_1

platforms           {darwin any}
license             MIT
maintainers         nomaintainer
supported_archs     noarch

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

homepage            https://github.com/dbader/pytest-mypy

checksums           rmd160  b5692a2923b1e63799ee99f995afeae37639cb2b \
                    sha256  f8458f642323f13a2ca3e2e61509f7767966b527b4d8adccd5032c3e7b4fd3db \
                    size    14020

python.versions     39 310 311 312

if {${name} ne ${subport}} {
    depends_build-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

    test.run        yes
}
