# -*- 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
PortGroup           github 1.0

github.setup        dfm emcee 2.2.1 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
name                py-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.

supported_archs     noarch
platforms           {darwin any}
license             MIT

checksums           rmd160  9d877a80ce5a19b8c442d225a27a57fe548a14f0 \
                    sha256  afb252b304051ca7a936e81adfa69c92b37fdafd8d3be95e920059f08dcf2d00 \
                    size    769439

python.versions     39 310

github.livecheck.regex {(2\.[0-9.]+)}

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

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

    test.run        yes
    python.test_framework nose
}
