# -*- 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-metakernel
version             0.31.0
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  fdd83758e82fff171ea1ee6e17222071459a1624 \
                    sha256  eeb6cbd357925709cb2b390a78d9b503a1267b48c13c0bf4eaf0d51068526e3f \
                    size    448687

python.versions     310 311 312 313 314

python.pep517_backend \
                    hatch

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

    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

    # See: https://github.com/Calysto/metakernel/pull/313
    patchfiles      patch-pyproject.toml.diff
}
