# -*- 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-peakutils
python.rootname     PeakUtils
version             1.3.5
revision            0

categories-append   science
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Peak detection utilities for 1D data
long_description    {*}${description}

homepage            https://peakutils.readthedocs.io

distname            peakutils-${version}

checksums           rmd160  9273100eb3392fb15cbffc2344c471b96406b766 \
                    sha256  4ff2e7f3330b93024fe8da1ee04e00389e26bcb2ef79bd2f9cf86ccd4962e114 \
                    size    117498

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-numpy \
                    port:py${python.version}-scipy

    test.run        yes

    depends_test-append \
                    port:py${python.version}-pandas

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst \
            LICENSE.txt ${destroot}${docdir}
    }
}
