# -*- 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.4
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  3942a9e87b2c5e2909ebdcbf455d6badc778a11b \
                    sha256  cd6d89f7f4477c5c78e7ef107f8e370d26a4eef6d4bc7b85feeff3b15e6c6d99 \
                    size    77487

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
}
