# -*- 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-webob
python.rootname     WebOb
version             1.8.7
revision            0
categories-append   www
platforms           darwin
license             MIT
supported_archs     noarch

python.versions     27 35 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

description         WSGI request and response object.

long_description    WebOb provides wrappers around the WSGI request \
                    environment, and an object to help create WSGI responses. \
                    \
                    The objects map much of the specified behavior of HTTP, \
                    including header parsing and accessors for other standard \
                    parts of the environment.

homepage            https://webob.org/

checksums           rmd160  83f57aca46b857a148324671045b0d57d0e6faa6 \
                    sha256  b64ef5141be559cfade448f044fa45c2260351edcb6a8ef6b7e00c7dcef0c323 \
                    size    278544

if {${name} ne ${subport}} {

    if {${python.version} <= 35} {
        version             1.8.5
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  b393b75657ad0069bb67e58fe9bc502d15c5e27b \
                            sha256  05aaab7975e0ee8af2026325d656e5ce14a71f1883c52276181821d6d5bf7086 \
                            size    271955
    }

    depends_build-append \
                        port:py${python.version}-setuptools

    livecheck.type      none
}
