# -*- 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.1
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  4503dad8b51ee761bca00772d72395d76198e76b \
                    sha256  ca0298fa20b1a4fae22eff8847b95f74912bd90544013ad36af192119883ea64 \
                    size    766468

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