# -*- 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             4.1.0
revision            0
categories-append   devel graphics
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     27 36 37 38

maintainers         {stromnov @stromnov} openmaintainer

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

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

checksums           rmd160  e7cda9d1a3685bbd96c6e270d36899fd27589955 \
                    sha256  3edd30d4f4bb0a37278b72578e7e60bc72045a8e6704179e2f4738e35bc12931 \
                    size    655843

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

    if {${python.version} eq 27} {
        version             3.3.0
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  033f956d480e845d4bc9967ddb85785ad1bfddf5 \
                            sha256  9f7c521239ac5a207c3cffc29c5bdde0854fff0dec0b5f91f086ba8e5f1de8a9 \
                            size    536730
        depends_lib-append  port:py${python.version}-typing \
                            port:py${python.version}-six
    }

    livecheck.type      none
}
