# -*- 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.3.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  da77187df421186a2b978da3dfafa1174222f92c \
                        sha256  3169e8ba5518a979b0771e60be380ab1a6c344f30a2126e360e6f38d009a3de4 \
                        size    1590692

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
}
