# -*- 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-jupyter
version             1.0.0
revision            1
categories-append   devel science
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     27 34 35 36 37

maintainers         {stromnov @stromnov} openmaintainer

description         Web application for interactive data science and scientific computing.
long_description    ${description}

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

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

checksums           rmd160  60b8fbadf895ad211192356af59314d0812568e2 \
                    sha256  d9dc4b3318f310e34c82951ea5d6683f67bed7def4b259fafbfe4f1beb1d8e5f

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-notebook \
                        port:py${python.version}-jupyter_console \
                        port:py${python.version}-nbconvert \
                        port:py${python.version}-ipykernel \
                        port:py${python.version}-ipywidgets

    patchfiles-append   patch-setup.py.diff

    # Remove QT support by default (to minimize average use case requirements)
    variant qtconsole description "Support for the Qt console" {
        depends_run-append  port:py${python.version}-qtconsole
    }

    livecheck.type      none
}