# -*- 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.2.2
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  809949bf99360549ad66664180d46c78cb54f60a \
                    sha256  a1ff9d9cfe81c75414641826312b9471780e19d39293ba0b012933f6b6cba0fe \
                    size    766606

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-versioningit

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