# -*- 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-ipykernel
version             5.5.3
revision            0
categories-append   devel
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     27 35 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

description         IPython Kernel for Jupyter.
long_description    ${description}

homepage            https://ipython.org/

checksums           rmd160  7b69b32024ef36333d097d3ec09feaf2b8ae6979 \
                    sha256  a682e4f7affd86d9ce9b699d21bcab6d5ec9fbb2bfcb194f2706973b252bc509 \
                    size    112656

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

    depends_lib-append  port:py${python.version}-ipython \
                        port:py${python.version}-traitlets \
                        port:py${python.version}-jupyter_client \
                        port:py${python.version}-tornado \
                        port:py${python.version}-appnope

    if {${python.version} eq 27} {
        version             4.9.0
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  055f76d943ed8f8d1011676d418c4cf23fa891c6 \
                            sha256  c5a498c70f7765c34f3397cf943b069057f5bef4e0218e4cfbb733e9f38fa5fa \
                            size    95255
        depends_lib-delete  port:py${python.version}-appnope
    }

    livecheck.type      none
}
