# -*- 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-twython
version             3.8.2
revision            0
categories-append   net
license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         Actively maintained, pure Python wrapper for the Twitter API.
long_description    ${description} Supports both normal and streaming Twitter APIs.
platforms           darwin
homepage            https://github.com/ryanmcgrath/twython

python.versions     27 36 37 38 39

checksums           rmd160  7208e3d189b278d181a13188ad30b56e77e11b2d \
                    sha256  c6ca64309260e0ab47267f76217c80812f591991437f376fc61498816384f9e7 \
                    size    373927

if {${name} ne ${subport}} {
    # https://github.com/ryanmcgrath/twython/pull/534
    patchfiles-append   patch-ccf20e3261.diff

    depends_lib-append  port:py${python.version}-requests-oauthlib
}
