# -*- 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             15.0.0
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

checksums           rmd160  8f084bd26607a88d1cd4a6be1b967f772e911d0c \
                    sha256  edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36 \
                    size    230680

python.versions     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
}
