# -*- 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.13.1
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  83bbd2f61a11cda706b4c3bccc188263f192be83 \
                    sha256  dd1f55c9bf971b1c3edf571a23edecd707aab5a72c3f5dac3cb98ee233fc6216 \
                    size    905515

python.versions     310 311 312 313 314

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}-ipywidgets \
                    port:py${python.version}-numpy \
                    port:py${python.version}-pandas \
                    port:py${python.version}-bqscales \
                    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
}
