# -*- 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

set realname        emcee
github.setup        dfm ${realname} 2.2.1 v
name                py-${realname}

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            http://dan.iel.fm/emcee/
distname            ${realname}-${version}

platforms           darwin
supported_archs     noarch
license             MIT

checksums           rmd160  9d877a80ce5a19b8c442d225a27a57fe548a14f0 \
                    sha256  afb252b304051ca7a936e81adfa69c92b37fdafd8d3be95e920059f08dcf2d00

python.versions     27 34 35 36 37

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

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

    depends_test-append \
                    port:py${python.version}-nose
    test.run        yes
    test.cmd        nosetests-${python.branch}
    test.target

    livecheck.type  none
}