# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        requests requests-oauthlib 2.0.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-${name}
categories-append   devel net
platforms           {darwin any}
supported_archs     noarch
license             ISC
maintainers         nomaintainer

description         OAuth for Humans
long_description    {*}${description}: an easy-to-use Python interface for building \
                    OAuth1 and OAuth2 clients.

checksums           rmd160  5745b9c2ca02e8a1a07380c05c45ab5e34bebf8a \
                    sha256  91dedcfb4d577aaba88122496d16927150accf12b641f9d75078c59b66171a66 \
                    size    51366

python.versions     27 310 311 312 313 314

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

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

    depends_test-append \
                    port:py${python.version}-mock \
                    port:py${python.version}-requests-mock \
                    port:py${python.version}-selenium

    patchfiles-append \
                    patch-oauthlib_3.3.0_expires_test_fix.diff

    test.run        yes

    livecheck.type  none
}
