# -*- 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-django-allauth
version             65.9.0
revision            0

supported_archs     noarch
platforms           {darwin any}
license             GPL-3
maintainers         nomaintainer

description         Django authentication, registration, and account management
long_description    Integrated set of Django applications addressing \
                    authentication, registration, account management \
                    as well as 3rd party (social) account authentication.

homepage            https://allauth.org

distname            django_allauth-${version}

checksums           rmd160  6e882a0e1c65e772446ac4285bed4d19563c0397 \
                    sha256  a06bca9974df44321e94c33bcf770bb6f924d1a44b57defbce4d7ec54a55483e \
                    size    1710514

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-django \
                    port:py${python.version}-asgiref

    depends_run-append \
                    port:py${python.version}-cryptography \
                    port:py${python.version}-openid \
                    port:py${python.version}-jwt \
                    port:py${python.version}-requests \
                    port:py${python.version}-requests-oauthlib \
                    port:py${python.version}-qrcode \
                    port:py${python.version}-fido2

    test.run        yes
    test.env-append PYTHONPATH=${destroot}${python.pkgd}

    depends_test-append \
                    port:py${python.version}-Pillow \
                    port:py${python.version}-pytest-asyncio \
                    port:py${python.version}-pytest-django
}