# -*- 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.14.0
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  c2c5554482cf51221e5ef2db1882d6d63d4eac4e \
                    sha256  cb99e208fb96c7eb5cfb7f225a280da950bd8cfb29d685a49071787c80218901 \
                    size    35202

python.versions     314
python.pep517_backend \
                    hatch

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

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