# -*- 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.3
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  c611e099f8f0843fa33aa6b66f38e38f4f60f971 \
                    sha256  0c600503d472bcf98d29914d4dcd67f80c24cc245395e2e00ba3603c9332e8ba \
                    size    103517

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
}
