# -*- 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
# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-patsy
version             0.2.1
revision            0
categories-append   math
platforms           darwin
license             BSD

python.versions     26 27 32 33

maintainers         stromnov openmaintainer

description         Python package for describing statistical models.

long_description    A Python package for describing statistical models \
                    and for building design matrices. It is closely inspired \
                    by and compatible with the 'formula' mini-language used \
                    in R and S.

homepage            https://github.com/pydata/patsy
master_sites        https://pypi.python.org/packages/source/p/patsy/

distname            patsy-${version}

checksums           rmd160  61afd801059d242a5efb0bcabdffe80c5b3d01bc \
                    sha256  31374ce25275813d8f1c48bdda40bba06f7a16cce7dcdfad73f43a555393d065

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

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "patsy-(\\d+(?:\\.\\d+)*)\.\[tz\]"
}
