# -*- 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.17.4
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     39 310 311 312 313
python.pep517_backend \
                    pdm

checksums           rmd160  169db486f1cc7a0382a3bfc1b1079d89d01300de \
                    sha256  b77dc07d849312fd2bb5e7f20a7af8985c7ec360c45b051ed5412f64d8dc1580 \
                    size    103734

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
}
