# -*- 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.1
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  26f082a2dfe07994646a100a9778c6e3656c616e \
                    sha256  a7badb0294be3ab1cf3caf646049e70ae2fbff0805b5cd2b06d7b09cf5378695 \
                    size    77607

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
}
