# -*- 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
version             3.0.2
python.rootname     emcee

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/

platforms           darwin
supported_archs     noarch
license             MIT

checksums           rmd160  b136daa9c9f4a3f8fe9e5294f551ceb39fc537a2 \
                    sha256  035a44d7594fdd03efd10a522558cdfaa080e046ad75594d0bf2aec80ec35388 \
                    size    4054969

python.versions     36 37 38 39

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

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

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

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

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
