# -*- 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-nbconvert
version             5.5.0
revision            0
categories-append   textproc
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     27 34 35 36 37

maintainers         {stromnov @stromnov} openmaintainer

description         Jupyter Notebooks converter.
long_description    ${description}

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

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

checksums           rmd160  9bbc61ecc4d33c03ebaa0c5b552af9b8d86afeec \
                    sha256  138381baa41d83584459b5cfecfc38c800ccf1f37d9ddd0bd440783346a4c39c \
                    size    583216

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-setuptools \
                        port:py${python.version}-mistune \
                        port:py${python.version}-jinja2 \
                        port:py${python.version}-pygments \
                        port:py${python.version}-traitlets \
                        port:py${python.version}-jupyter_core \
                        port:py${python.version}-nbformat \
                        port:py${python.version}-entrypoints \
                        port:py${python.version}-bleach \
                        port:py${python.version}-pandocfilters \
                        port:py${python.version}-testpath \
                        port:py${python.version}-defusedxml

    if {${python.version} eq 34} {
        version             5.4.1
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  c4c235e3eddb2c6e8f017ecc3033314927d35520 \
                            sha256  302554a2e219bc0fc84f3edd3e79953f3767b46ab67626fdec16e38ba3f7efe4 \
                            size    542123
    }

    livecheck.type      none
}