# -*- 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-beaker
python.rootname     Beaker
version             1.13.0
revision            0
categories-append   www
platforms           {darwin any}
license             BSD MIT
supported_archs     noarch

python.versions     27 310 311 312 313 314

maintainers         {stromnov @stromnov} openmaintainer

description         A Session and Caching library with WSGI Middleware

long_description    Beaker is a web session and general caching library that \
                    includes WSGI middleware for use in web applications. \
                    \
                    As a general caching library, Beaker can handle storing \
                    for various times any Python object that can be pickled \
                    with optional back-ends on a fine-grained basis. \
                    \
                    Beaker was built largely on the code from MyghtyUtils, \
                    then refactored and extended with database support. \
                    \
                    Beaker includes Cache and Session WSGI middleware to ease \
                    integration with WSGI capable frameworks.

homepage            https://beaker.readthedocs.io/

checksums           rmd160  66326731394b03b9bd298e1cd9ac26159581003a \
                    sha256  e956cd8a35ad5de1b5212c7bff8fc01e2b3d34ab92466d24684c666abb8c9c30 \
                    size    68250

if {${name} ne ${subport}} {
    if {${python.version} eq 27} {
        version             1.12.1
        revision            0
        checksums           rmd160  7e517fd37387643617a2dacc7d22b008b2983777 \
                            sha256  57770b40956e6c5cf1d8221dc59519029e470080ed8d3065c4e6ab36ce7e3c81 \
                            size    67296
        depends_lib-append  port:py${python.version}-setuptools \
                            port:py${python.version}-funcsigs
    }

    livecheck.type      none
}
