# -*- 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-typer
version             0.20.1
revision            0

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

description         Typer, build great CLIs. Easy to code. Based on Python type hints.
long_description    {*}${description}

homepage            https://github.com/tiangolo/typer

python.versions     310 311 312 313 314
python.pep517_backend \
                    pdm

checksums           rmd160  69331d3a56cb81ae93027f5ca63b22166d24e249 \
                    sha256  68585eb1b01203689c4199bc440d6be616f0851e9f0eb41e4a778845c5a0fd5b \
                    size    105968

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-click \
                    port:py${python.version}-rich \
                    port:py${python.version}-shellingham \
                    port:py${python.version}-typing_extensions

    depends_test-append \
                    port:py${python.version}-mypy \
                    port:py${python.version}-pytest-sugar \
                    port:py${python.version}-pytest-xdist

    test.run        yes
}
