# -*- 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-silx
version             1.0.0
revision            0

categories-append   science
license             MIT
maintainers         {nist.gov:joe.fowler @joefowler} openmaintainer

description         Python packages to support data analysis at synchrotron radiation facilities.
long_description   \
    ${description} silx aims to provide reading/writing tools for different file formats, \
    data reduction routines and a set of Qt widgets to browse and visualise data.

homepage            https://www.silx.org/doc/silx/latest/

checksums           rmd160  22da626a071dc3d77f0a8c9f0e937c422fcc982c \
                    sha256  1cf910f6e8097cb842e687bb81e1286b5cfc9e0213edef99a614b8b7dc5bf714 \
                    size    13758546

python.versions     37 38 39 310

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

    depends_lib-append \
                    port:py${python.version}-numpy

    depends_run-append \
                    port:py${python.version}-h5py \
                    port:py${python.version}-fabio

    if {${python.version} < 38} {
        depends_lib-append \
                port:py${python.version}-importlib-metadata
    }
    livecheck.type  none
}
