# -*- 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-vispy
version             0.17.0
revision            0

license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         VisPy is a high-performance interactive 2D/3D data visualization \
                    library.
long_description    {*}${description} VisPy leverages the computational power of modern \
                    Graphics Processing Units (GPUs) through the OpenGL library to \
                    display very large datasets.
homepage            https://vispy.org/index.html

checksums           rmd160  ff6c672f95744432611110fa77ce70cbaec21322 \
                    sha256  20c2b51c3fc6f2700a648ede8560376dabdc5d258184cef8f6a34b3b4c80e46f \
                    size    5527987

python.versions     310 311 312 313 314

python.pep517_backend \
                    hatch

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-hatch-cython \
                    port:py${python.version}-hatch-vcs \
                    port:py${python.version}-pythran

    depends_lib-append  \
                    port:py${python.version}-freetype \
                    port:py${python.version}-hsluv \
                    port:py${python.version}-kiwisolver \
                    port:py${python.version}-numpy \
                    port:py${python.version}-packaging \
                    port:py${python.version}-pyqt6

    depends_test-append \
                    port:py${python.version}-imageio \
                    port:py${python.version}-meshio \
                    port:py${python.version}-pillow \
                    port:py${python.version}-pytest \
                    port:py${python.version}-pytest-sugar \
                    port:py${python.version}-sphinx-gallery

    test.run        yes
}
