# -*- 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.29.1
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

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 315
python.pep517_backend pdm

checksums           rmd160  d1cf2c5db6afa7ae18345fcf28c15044adaab64a \
                    sha256  ab6eb3880bf67ce96147734717f9ec333c06f66e361f3ea947d0be43da39f242 \
                    size    205843

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-pydantic \
                    port:py${python.version}-rich \
                    port:py${python.version}-shellingham \
                    port:py${python.version}-annotated-doc

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

    test.run        yes
}
