# -*- 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.3.1
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  9f5c5042b109566409e0946a3761f41a0c5451fa \
                    sha256  0f0f8aa759826a193cf66c12ea1af1637f87b9b4622d46e866952bb022e538c9 \
                    size    185918

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}-blinker \
                            port:py${python.version}-cryptography \
                            port:py${python.version}-jwt

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

    test.run        yes
}
