# -*- 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-google-auth
python.rootname     google_auth
version             2.63.3
revision            0

categories-append   www devel
license             Apache-2
maintainers         {wholezero.org:macports @mrdomino} {mps @Schamschula} openmaintainer

description         simplifies using Google's various server-to-server \
                    authentication mechanisms
long_description    {*}${description}
homepage            https://pypi.python.org/pypi/${python.rootname}

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  5daa644b8911a7b15d3fc99fb58b20161e64e27f \
                    sha256  88963208be0f9c55f54dd7901cbad9c99665be28ef8876a943a8fbaa4e540a4c \
                    size    421543

python.versions     310 311 312 313 314 315

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-asn1-modules \
                    port:py${python.version}-cryptography

    variant aiohttp description {build with aiohttp support} {
        depends_lib-append \
                    port:py${python.version}-aiohttp \
                    port:py${python.version}-requests
    }

    variant urllib3 description {build with urllib3 support} {
        depends_lib-append \
                    port:py${python.version}-packaging \
                    port:py${python.version}-urllib3
    }
}
