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

python.versions     27 35 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

description         The Jupyter Notebook format.
long_description    ${description}

homepage            https://jupyter.org

checksums           rmd160  9764c670e12b6dc4244b7f053790760e3e592864 \
                    sha256  1d223e64a18bfa7cdf2db2e9ba8a818312fc2a0701d2e910b58df66809385a56 \
                    size    94402

if {${name} ne ${subport}} {

    if {${python.version} <= 36} {
        version             4.4.0
        revision            1
        distname            ${python.rootname}-${version}
        checksums           rmd160  8317a6ae2072eeb3a860dbe4080a918cdd203e51 \
                            sha256  f7494ef0df60766b7cabe0a3651556345a963b74dbc16bc7c18479041170d402 \
                            size    113683
    } else {
        patchfiles-append   patch-setup.py.diff
    }

    depends_lib-append  port:py${python.version}-setuptools \
                        port:py${python.version}-ipython_genutils \
                        port:py${python.version}-traitlets \
                        port:py${python.version}-jsonschema \
                        port:py${python.version}-jupyter_core

    livecheck.type      none
}
