# -*- 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.9.1
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  7e395f61194400e85e331af253d410d45ee83e9e \
                    sha256  83bda2a4bbb6a93bc07e5de73a0f30e5a8b811c85a9116aaca6dd3eed8abb0eb \
                    size    237114

python.default_version 314

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:py${python.version}-pskc \
    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
