# -*- 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-oauthlib
version             4.0.0
revision            0

categories-append   net security
platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         {petr @petrrr} openmaintainer

description         A generic, spec-compliant, thorough implementation of the \
                    OAuth request-signing logic.
long_description    {*}${description}

homepage            https://github.com/oauthlib/oauthlib

checksums           rmd160  b2d68da9aaaf1cae2ecc2544f40ea1c656aa5454 \
                    sha256  efb274799819440f95b4ab3b818869f1ce9ae26c5beacba0201d1a1b76b54f86 \
                    size    187232

python.versions     27 310 311 312 313 314 315

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version             2.1.0
        revision            0

        checksums           rmd160  f8a3993c595191170bdbbe6c8b407c29e98e8340 \
                            sha256  ac35665a61c1685c56336bda97d5eefa246f1202618a1d6f34fccb1bdd404162 \
                            size    128807

        depends_build-append \
                            port:py${python.version}-setuptools
    }

    depends_lib-append      port:py${python.version}-blinker \
                            port:py${python.version}-cryptography \
                            port:py${python.version}-jwt

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

    test.run        yes
}
