# -*- 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-pywavelets
python.rootname     PyWavelets
version             1.4.1
revision            1
categories-append   science math
license             MIT

python.versions     37 38 39 310 311
python.pep517       yes

maintainers         {stromnov @stromnov} openmaintainer

description         PyWavelets is a Python wavelet transforms module
long_description    {*}${description}.

homepage            https://github.com/PyWavelets/pywt

checksums           rmd160  955989b2760cf43fdec3895c4046c256c0c04996 \
                    sha256  6437af3ddf083118c26d8f97ab43b0724b956c9f958e9ea788659f6a2834ba93 \
                    size    4589677

if {${name} ne ${subport}} {
    if {${python.version} eq 37} {
        version             1.3.0
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  27ea9a65abba7cfb7c5a705c0e985bf82da813cf \
                            sha256  cbaa9d62052d9daf8da765fc8e7c30c38ea2b8e9e1c18841913dfb4aec671ee5 \
                            size    4585209
        python.pep517       no
        depends_build-append \
                            port:py${python.version}-setuptools
    } else {
       patchfiles       patch-pyproject.toml.diff
    }

    depends_build-append \
                        port:py${python.version}-cython

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

    livecheck.type      none
}
