# -*- 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.1.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/en/latest/

checksums           rmd160  dff7eff6ca96cf6ff87350523cd93ad800d2f489 \
                    sha256  e497a48b844b0320d45007cdebfeaeed8db2a4f4bcf49f15e455cfc4af11eaa8 \
                    size    224441

python.versions     39 310 311 312 313

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
}
