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

github.setup        Calysto metakernel 1.0.2 v
github.tarball_from archive
name                py-metakernel
revision            0

categories-append   devel science
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         A Jupyter/IPython kernel template
long_description    {*}${description} which includes core magic functions (including \
                    help, command and file path completion, parallel and distributed \
                    processing, downloads, and much more).
homepage            https://github.com/Calysto/metakernel

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  a6243a8164dfd2a2a87b1925c66eb31f416667e0 \
                    sha256  326e4a11eba96417bde1f6ee7d88ce1b66b5c9a96356d005862f8ca1b6a9d089 \
                    size    462243

python.versions     310 311 312 313 314

python.pep517_backend \
                    poetry

if {${name} ne ${subport}} {
    depends_lib-append  \
                    port:py${python.version}-comm \
                    port:py${python.version}-ipykernel \
                    port:py${python.version}-jedi \
                    port:py${python.version}-jupyter_core \
                    port:py${python.version}-pexpect

    if {${python.version} == 310} {
        version     0.32.0
        revision    1

        checksums   rmd160  883259f8470c90e955f3589ed7604eabd5607877 \
                    sha256  031984b4c0629c129c86162d27bd8df264d6993bf961aec730fdb71facefddbc \
                    size    460794

        python.pep517_backend \
                    hatch

        depends_build-append \
                    port:py${python.version}-virtualenv

    }
}
