# -*- 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-pyotp
version             2.12.2
revision            0

supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {judaew @judaew} openmaintainer

description         Python One-Time Password Library
long_description    \
    PyOTP is a Python library for generating and verifying one-time passwords. \
    It can be used to implement two-factor (2FA) or multi-factor (MFA) \
    authentication methods in web applications and in other systems that \
    require users to log in.
homepage            https://pyauth.github.io/pyotp

checksums           rmd160  654badab6a383d028bbe4b1040dd3793a6ee3c83 \
                    sha256  6d581512da252dfda3e9099b8d870469f181e736c2f6320d5253eb00d334dc09 \
                    size    28008

python.versions     310 311 312 313 314
python.pep517_backend hatch

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-hatch-vcs

    test.run        yes
    python.test_framework unittest
}
