# -*- 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-rich
version             10.1.0
platforms           darwin
license             MIT
supported_archs     noarch

maintainers         {@harens gmail.com:harensdeveloper} \
                    openmaintainer

description         Python library for rich text and beautiful formatting \
                    in the terminal
long_description    {*}${description}. The Rich API makes it easy to add color \
                    and style to terminal output. Rich can also render pretty tables, \
                    progress bars, markdown, syntax highlighted source code, tracebacks, \
                    and more — out of the box.

homepage            https://rich.readthedocs.io/en/latest/

checksums           rmd160 c5dab1973fcf012f46e66d56dc827adfc38b6a3e \
                    sha256 8f05431091601888c50341697cfc421dc398ce37b12bca0237388ef9c7e2c9e9 \
                    size   185192

python.versions     38 39

if {${name} ne ${subport}} {

    depends_build-append \
                        port:py${python.version}-setuptools

    depends_run-append  port:py${python.version}-colorama \
                        port:py${python.version}-commonmark \
                        port:py${python.version}-typing_extensions \
                        port:py${python.version}-pygments

    test.run            yes
    test.cmd            ${python.bin}
    test.target         -m rich

    livecheck.type      none
}

