# -*- 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-fastdatatable
python.rootname     textual-fastdatatable
version             0.17.1
revision            0

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

description         Fast Textual DataTable widget for large datasets
long_description    {*}${description} with pluggable data storage backends.

homepage            https://github.com/tconbeer/textual-fastdatatable
distname            textual_fastdatatable-${version}

checksums           rmd160  e74632eaf0a929079be6640b348cacffe7c15fb7 \
                    sha256  401865e706b882f9d750424674a6ce782bffd42c6087221d9d87c4857680e252 \
                    size    38572

python.versions     310 311 312 313 314
python.pep517_backend \
                    hatch

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-pyarrow \
                    port:py${python.version}-textual \
                    port:py${python.version}-typing_extensions

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
            ${destroot}${docdir}
    }
}
