# -*- 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-statsmodels
version             0.15.0
revision            0
categories-append   science math
license             BSD

python.versions     310 311 312 313 314
python.pep517_backend meson

maintainers         {stromnov @stromnov} openmaintainer

description         Statistical computations and models for use with SciPy

long_description    Statsmodels is  a  Python  package  that  provides \
                    a complement to scipy for statistical computations \
                    including descriptive  statistics  and  estimation \
                    of statistical models.

homepage            https://www.statsmodels.org/

checksums           rmd160  009f8436f95752a7889f13f68802ba4bc2a42dda \
                    sha256  5d257fe58d0772bc46a557880ca78e2a8e07fec7bfd9d11074aef8e33e1aecbc \
                    size    15736853

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

    build.env-append    CYTHON=${prefix}/bin/cython-${python.branch}

    depends_lib-append  port:py${python.version}-numpy \
                        port:py${python.version}-scipy \
                        port:py${python.version}-pandas \
                        port:py${python.version}-patsy \
                        port:py${python.version}-packaging
}
