# -*- 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.0.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  c629b9f15537ded7a3b0d6157a6cea94b1f2bc53 \
                    sha256  614bf5ecbe2337347b590afb111929aa9c16c9527c4887d96c9bc7f6640756b4 \
                    size    763834

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
    }
}
