# -*- 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
PortGroup           github 1.0

github.setup        jupyterlab jupyterlab_server 1.0.6 v
name                py-jupyterlab_server
revision            0
categories-append   devel
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     36 37

maintainers         {stromnov @stromnov} openmaintainer

description         This package is used to launch an application built using JupyterLab.
long_description    ${description}

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

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

checksums           rmd160  68887e10867e500609fd7b5b18e5f1b2d0cd6b69 \
                    sha256  d0977527bfce6f47c782cb6bf79d2c949ebe3f22ac695fa000b730c671445dad \
                    size    20753

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-setuptools
    depends_lib-append  port:py${python.version}-json5 \
                        port:py${python.version}-jsonschema \
                        port:py${python.version}-notebook \
                        port:py${python.version}-jinja2

    livecheck.type      none
} else {
    livecheck.regex     {archive/v([0-9.]+)\.tar\.gz}
}

subport py35-${python.rootname} {
    replaced_by py36-${python.rootname}
    PortGroup obsolete 1.0
}