# -*- 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 120201 2014-05-19 11:02:43Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

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

python.versions     26 27 31 32 33 34

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  92bad9abc1c4bc55057b869bcab51bef77c3c8b8 \
                    sha256  1c1473875d846fe563d70868acf05b1953a4472f4695b7b3566d1d978957b8fc

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

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     {requests-(\d+(?:\.\d+)*)\.[tz]}
}
