# -*- 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             3.1.0
revision            0

categories-append   net security
platforms           darwin
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
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  9f860862bed7fda84d53f2882cef33dc15133dc8 \
                    sha256  bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889 \
                    size    155362

python.versions     27 35 36 37 38 39

if {${name} ne ${subport}} {
    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

    livecheck.type  none
}
