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

license             MIT
supported_archs     noarch
platforms           {darwin any}
maintainers         {@harens harens} 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  ff76e37533e060dbafa433c6e40261adab88d0c9 \
                    sha256  b8daa0b9e4eef54dd8cf7c86c03713f53241884e814f4e2f5fb342fe520f639b \
                    size    230582

python.versions     39 310 311 312 313 314

python.pep517_backend   poetry

if {${name} ne ${subport}} {
    depends_run-append  port:py${python.version}-markdown-it-py \
                        port:py${python.version}-pygments

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