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

checksums           rmd160  a286a1f6a198a3af171638949e4e63bebb5bf676 \
                    sha256  82f1bc23a6a21ebca4ae0c45af9bdbc492ed20231dcb63f297d6d1021a9d5725 \
                    size    224078

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
}
