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

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

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}

checksums           rmd160  95508237855e20faf9edc174c6a7d19aed038c9e \
                    sha256  2a416995c49d5381a81d0a6fd23925cb0e3f14b4f239ed05f35fa3c981bb1df2 \
                    size    1462599

python.versions     39 310 311 312
python.pep517       yes
python.pep517_backend   poetry

if {${name} ne ${subport}} {
    depends_build-append    port:poetry

    depends_lib-append      port:py${python.version}-rich \
                            port:py${python.version}-typing_extensions
}
