# -*- 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-bottleneck
version             1.4.2
revision            0
categories-append   math
license             BSD

python.versions     39 310 311 312 313

maintainers         {stromnov @stromnov} openmaintainer

description         Fast NumPy array functions written in Cython

long_description    Bottleneck is a set of NumPy ufuncs rewritten in \
                    Cython to boost performance. The collection contains \
                    mainly operations dealing with NaN and sliding windows.

homepage            https://github.com/pydata/bottleneck

checksums           rmd160  fb8769bdf22d17b90d3b8a8b38e92d44d197d6be \
                    sha256  fa8e8e1799dea5483ce6669462660f9d9a95649f6f98a80d315b84ec89f449f4 \
                    size    103563

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

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

    # py-numpy >= 2.0.0 is only required when building wheels for PyPI
    # See: pyproject.toml
    patchfiles  patch-pyproject.toml.diff
}