# -*- 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 92934 2012-05-11 11:17:20Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-requests
version             0.12.1
revision            0
categories          python devel
license             ISC
platforms           darwin
supported_archs     noarch

python.versions     26 27
python.default_version  27

maintainers         saispo gmail.com:larry.velazquez 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  29b425d9e0f9b481afe5c2849d4c85c79b9573bc \
                    sha256  9ce56b87180c06728d96ca734055675abf8f5cc3136e0d7712a6260430685589

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

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