# -*- 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                yubikey-manager
version             5.6.0
revision            0
categories-prepend  security
platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         {amake @amake} openmaintainer

description         Tool ("ykman") for managing your YubiKey configuration.
long_description    Python library and command line tool for configuring any YubiKey over all USB interfaces.

conflicts           yubikey-manager4

python.rootname     yubikey_manager

homepage            https://developers.yubico.com/yubikey-manager/

checksums           rmd160  8303cc0a77cc906ad798859336df66fc11ee81f6 \
                    sha256  c9b35a9619cbf5f97e09067563131ed4fb739bb571dcd0f7986c91c428b2e6d8 \
                    size    219667

python.default_version 312

python.pep517           yes
python.pep517_backend   poetry

depends_lib-append \
    port:py${python.version}-setuptools

depends_run-append \
    port:py${python.version}-click \
    port:py${python.version}-cryptography \
    port:py${python.version}-fido2 \
    port:py${python.version}-openssl \
    port:py${python.version}-pyscard \
    port:py${python.version}-keyring \
    port:py${python.version}-jaraco.functools \
    port:swig

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

test.run        yes
test.cmd        py.test-${python.branch}
test.target     tests