# -*- 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-spyder-kernels
version             3.1.5
revision            0
epoch               1

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Jupyter kernels for Spyder's console.
long_description    {*}${description}

homepage            https://github.com/spyder-ide/spyder-kernels

distname            spyder_kernels-${version}

checksums           rmd160  a94c17da4ef755afab2fb19f257f07528d3bbfca \
                    sha256  5996ed30474e7f71815e87d398dbd44abeaa7456ea6756f8191124c10453738e \
                    size    86375

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-cloudpickle \
                    port:py${python.version}-ipykernel \
                    port:py${python.version}-ipython \
                    port:py${python.version}-jupyter_client \
                    port:py${python.version}-wurlitzer \
                    port:py${python.version}-zmq

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} AUTHORS.txt CHANGELOG.md \
            LICENSE.txt README.md ${destroot}${docdir}
    }
}
