# -*- 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-ipywidgets
version             7.5.1
revision            0
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     27 35 36 37 38

maintainers         {stromnov @stromnov} openmaintainer

description         IPython HTML widgets for Jupyter.
long_description    ${description}

homepage            https://ipython.org
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}

distname            ${python.rootname}-${version}

checksums           rmd160  fa712bdd7efa65673a6bb424afb8bd0aef8b768d \
                    sha256  e945f6e02854a74994c596d9db83444a1850c01648f1574adf144fbbabe05c97 \
                    size    5656334

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-ipython \
                        port:py${python.version}-ipykernel \
                        port:py${python.version}-traitlets \
                        port:py${python.version}-nbformat \
                        port:py${python.version}-widgetsnbextension

    if {${python.version} in {27 35}} {
        version             7.5.0
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  dd95fbc4280d32f34fb5a586ead9e3bb5a86fc6e \
                            sha256  cb263c6974aca902d00a435711823bb4aaf6614a5f997f517e15fa84151e8fa2 \
                            size    5657273
    }

    livecheck.type      none
}