# -*- 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             8.2.7
revision            0

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.

categories-append   devel
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} openmaintainer
supported_archs     noarch
platforms           {darwin any}

homepage            https://github.com/willmcgugan/textual

checksums           rmd160  00115f5e0bf197453b2a00f358313335bc736a33 \
                    sha256  658f568ff81e30ed43890c3e07520390e5cf1b4763822006e060656b0a88f105 \
                    size    1859249

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

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