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

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

python.versions     310 311 312 313 314
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  bd9c24aba6723acec5fa2c32ed88e2c8ec945324 \
                    sha256  dda699216cf85b040d968ae5a569ad45957616811e38760a85e5118269daca67 \
                    size    765519

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} < 315} {
        depends_lib-append  port:py${python.version}-typing_extensions
    }
}
