# -*- 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.26.8
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
python.pep517_backend pdm

checksums           rmd160  6be6dc05bc0159bbdc1d7fcd3f04f474b3512851 \
                    sha256  c244a6bd558886fe3f8780efb6bdd28bb9aff005a94eedebaa5cb32926fe2f7e \
                    size    202097

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}-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
}
