# -*- 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-image
python.rootname     textual_image
version             0.13.2
revision            0
categories-append   graphics
platforms           {darwin any}
license             LGPL-3
maintainers         nomaintainer
description         Render images via Kitty's Terminal Graphics Protocol with Rich and Textual
long_description    {*}${description}
homepage            https://github.com/lnqs/textual-image
checksums           rmd160  ea3c702e6ae94fad930b60224b7fd7431e495203 \
                    sha256  8ca0cee2bfcd7734de5b16a1936da226b77b745e28830d9cf2bc202cb70e43ee \
                    size    2185178
supported_archs     noarch

python.versions     310 311 312 313 314

python.pep517_backend   hatch

if {${subport} ne ${name}} {
    depends_run-append  port:py${python.version}-Pillow \
                        port:py${python.version}-numpy \
                        port:py${python.version}-rich \
                        port:py${python.version}-textual
}
