# -*- 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-emcee3
python.rootname     emcee
version             3.1.6
revision            0

maintainers         {aronnax @lpsinger} openmaintainer

categories-append   science math
description         affine-invariant ensemble MCMC sampling
long_description    emcee is a stable, well tested Python implementation of \
                    the affine-invariant ensemble sampler for Markov chain \
                    Monte Carlo (MCMC) proposed by Goodman & Weare (2010). The \
                    code is open source and has already been used in several \
                    published projects in the astrophysics literature.
homepage            https://emcee.readthedocs.io/en/stable/

supported_archs     noarch
platforms           {darwin any}
license             MIT

checksums           rmd160  e426ee88e90f1b6c07eb15ee755b0ec3691a3b3b \
                    sha256  11af4daf6ab8f9ca69681e3c29054665db7bbd87fd4eb8e437d2c3a1248c637d \
                    size    2871117

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    if {${python.version} < 311} {
        conflicts       py${python.version}-emcee
    }

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

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

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

    test.run        yes
}
