# -*- 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.0.3
revision            0

license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         Python to GNU Octave bridge --> run m-files from Python.
long_description    {*}${description}

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  6334301f5e80defa3f0aa743220e2f7df7fe5e4f \
                    sha256  5b79a081461673c3bb3d77d91abd8a0402b9c9caab95be4402f2085f9387e59e \
                    size    74152

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}-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
}
