# -*- 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-altair
version             5.5.0
revision            0

categories-append   devel graphics
license             BSD
supported_archs     noarch
platforms           {darwin any}

python.versions     310 311 312 313
python.pep517_backend hatch

maintainers         {stromnov @stromnov} openmaintainer

description         A declarative statistical visualization library for Python.
long_description    {*}${description}

homepage            https://altair-viz.github.io/

checksums           rmd160  9d5da196b8611f3279faa440764d7f6276313e27 \
                    sha256  d960ebe6178c56de3855a68c47b516be38640b73fb3b5111c2a9ca90546dd73d \
                    size    705305

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-jinja2 \
                        port:py${python.version}-jsonschema \
                        port:py${python.version}-narwhals \
                        port:py${python.version}-numpy \
                        port:py${python.version}-pandas \
                        port:py${python.version}-toolz \
                        port:py${python.version}-packaging

    if {${python.version} < 314} {
        depends_lib-append  port:py${python.version}-typing_extensions
    }
}
