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

name                py-mypy
version             0.812
revision            0
license             MIT
platforms           darwin
maintainers         {toby @tobypeterson} openmaintainer
description         Optional static typing for Python
long_description    Add type annotations to your Python programs, and use mypy to \
                    type check them. Mypy is essentially a Python linter on steroids, \
                    and it can catch many programming errors by analyzing your \
                    program, without actually having to run it. Mypy has a powerful \
                    type system with features such as type inference, gradual typing, \
                    generics and union types.

homepage            http://www.mypy-lang.org

checksums           rmd160  846742c711725c39a0befce8c42ce267330bb3f8 \
                    sha256  cd07039aa5df222037005b08fbbfd69b3ab0b0bd7a07d7906de75ae52c4e3119 \
                    size    2645818

python.versions     37 38 39

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools
    depends_lib-append      port:py${python.version}-mypy_extensions \
                            port:py${python.version}-typed-ast \
                            port:py${python.version}-typing_extensions
    depends_run-append      port:mypy_select

    select.group            mypy
    select.file             ${filespath}/mypy${python.version}

    livecheck.type          none
} else {
    livecheck.type          pypi
}
