# -*- 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 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-requests
version             1.2.3
categories-append   devel
license             Apache-2
platforms           darwin
supported_archs     noarch

python.versions     26 27 31 32 33

maintainers         saispo openmaintainer

description         Python HTTP for Humans.

long_description    Most existing Python modules for dealing HTTP \
                    requests are insane. I have to look up everything \
                    that I want to do. Most of my worst Python \
                    experiences are a result of the various built-in \
                    HTTP libraries (yes, even worse than Logging). But \
                    this one's different. This one's going to be \
                    awesome. And simple. Really simple.

homepage            http://python-requests.org/
master_sites        http://pypi.python.org/packages/source/r/requests

distname            requests-${version}

checksums           rmd160  32fbe6dc1b4f63205327400475d3e7f5c9afe7c0 \
                    sha256  156bf3ec27ba9ec7e0cf8fbe02808718099d218de403eb64a714d73ba1a29ab1

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

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "requests-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
