# -*- 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-bqplot
version             0.12.40
revision            0

categories-append   graphics math science
supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         {petr @petrrr} openmaintainer

description         Interactive plotting for the Jupyter notebook

long_description    \
    Grammar of Graphics-based interactive plotting framework for the Jupyter \
    notebook, based on the interactive Jupyter widgets ipywidgets and and \
    d3.js. \
    In bqplot, every single attribute of the plot is an interactive widget. \
    This allows the user to integrate any plot with IPython widgets to create \
    a complex and feature rich GUI from just a few simple lines of Python code.

homepage            https://github.com/bloomberg/bqplot

checksums           rmd160  4f6313a12a7d73dde54ac4ea9ff6d1b8deacd8fa \
                    sha256  ecbfe8bf04f04458eee46dc2c2f8256b4c1521d46f94438e9be19389e4f86fb9 \
                    size    1205355

python.versions     39 310 311
python.pep517       yes

if {${name} ne ${subport}} {
    # allow current versions of jupyter_packaging
    patchfiles      patch-pyproject.toml.diff

    depends_build-append \
                    port:py${python.version}-jupyter_packaging \
                    port:py${python.version}-jupyterlab

    depends_lib-append \
                    port:py${python.version}-numpy \
                    port:py${python.version}-pandas \
                    port:py${python.version}-ipywidgets \
                    port:py${python.version}-traitlets \
                    port:py${python.version}-traittypes

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.md \
            LICENSE ${destroot}${docdir}
    }

    test.run        yes
}
