# -*- 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

set _name           bqplot
set _n              [string index ${_name} 0]

name                py-${_name}
version             0.10.2
categories-append   graphics math science
platforms           darwin
supported_archs     noarch
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

distname            ${_name}-${version}
master_sites        pypi:${_n}/${_name}/

checksums           md5     ed6c536c62506fea44a551b605e05eb5 \
                    rmd160  807961e56189af7acc7a18e177e04bf2825c95f7 \
                    sha256  1e5b49cd1446ce2846b99354924ac71513210bb07c87f862fe83d17d290adc25

python.versions     27 34 35 36

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

    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 

    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   https://pypi.python.org/pypi/${_name}/json
    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
}