# -*- 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-pymodels
version             0.18.3
license             LGPL-3+
maintainers         {stromnov @stromnov} openmaintainer

description         Python models for schema-less databases.

long_description    \
        PyModels is a lightweight framework for mapping Python classes \
        to schema-less databases. It is not an ORM as it doesn't map \
        existing schemata to Python objects but instead defines them \
        on a higher layer built upon a schema-less storage (key/value \
        or document-oriented).

platforms           darwin
supported_archs     noarch

homepage            https://pypi.python.org/pypi/pymodels/
master_sites        pypi:p/pymodels/
distname            pymodels-${version}

checksums           md5     13e10f5a4ec05b1590981905db5629e6 \
                    sha1    eb21a8665bb5bc661d7d79e14850c62e29fcf814 \
                    rmd160  f152f09c80aa60cff3750aa3b7a0a20e9875fe30

python.versions     26

if {${name} ne ${subport}} {
    depends_build       port:py${python.version}-setuptools
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       https://pypi.python.org/pypi/pymodels/json
    livecheck.regex     "pymodels-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}