# -*- 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.8.0
revision            1
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  d2dc8d584bddea4f97851757bb3715ecf13ba5bb \
                    sha256  3af0da65e1fdd46763c94ee74e2da55a4b6e7771da776c197f5f4b4581738560 \
                    size    228631

python.default_version 313

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