# -*- 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-textual
version             7.5.0
revision            0
categories-append   devel
platforms           {darwin any}
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} openmaintainer
supported_archs     noarch

description         \
    Textual is a TUI (Text User Interface) framework for Python, \
    inspired by modern web development.

long_description    \
    {*}${description} Textual uses Rich to render rich text, so anything that \
    Rich can render may be used in Textual. Event handling in Textual is \
    asynchronous (using async and await keywords). Widgets (UI components) \
    can independently update and communicate with each other via message \
    passing. Textual has more in common with modern web development than it \
    does with curses\; layout is done with CSS grid and (soon) the theme may \
    be customized with CSS. Other techniques are borrowed from JS frameworks \
    such as Vue and React.

homepage                https://github.com/willmcgugan/textual
checksums               rmd160  d4432442e6dde223be8cd50ae08c9fe23ba21b85 \
                        sha256  c730cba1e3d704e8f1ca915b6a3af01451e3bca380114baacf6abf87e9dac8b6 \
                        size    1592319

python.versions         310 311 312 313 314
python.pep517_backend   poetry

if {${subport} ne ${name}} {
    depends_lib-append      port:py${python.version}-markdown-it-py \
                            port:py${python.version}-platformdirs \
                            port:py${python.version}-pygments \
                            port:py${python.version}-rich \
                            port:py${python.version}-typing_extensions
}
