# -*- 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-oct2py
version             6.1.0
revision            0

license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         Python to GNU Octave bridge --> run m-files from Python.
long_description    {*}${description}
homepage            https://github.com/blink1073/oct2py

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  01314556dc9c8b3a0c464fc0a6bf77c7c5619e6c \
                    sha256  c539d9be581a9862e720fa01ab235b749973e7f0e5d4af3a8a1bea3457f1287e \
                    size    77566

python.versions     310 311 312 313 314

python.pep517_backend \
                    poetry

if {${name} ne ${subport}} {
    depends_lib-append \
        port:octave \
        port:py${python.version}-metakernel \
        port:py${python.version}-numpy \
        port:py${python.version}-octave_kernel \
        port:py${python.version}-pydantic_settings \
        port:py${python.version}-scipy \
        port:py${python.version}-tornado

    depends_test-append \
        port:py${python.version}-flaky \
        port:py${python.version}-ipython \
        port:py${python.version}-matplotlib \
        port:py${python.version}-nbconvert \
        port:py${python.version}-pandas \
        port:py${python.version}-pytest \
        port:py${python.version}-pytest-timeout \
        port:py${python.version}-pytest-xdist

    test.run        yes
}
