# -*- 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-manager4
version             4.0.9
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.

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

checksums           rmd160  91110d9dc284c53e1c43a1d8bba73b9536d13ea9 \
                    sha256  384e3a2a66df4ce417aede734eb8c5d0c1b7981290e9bc940c85cc000ef833b4 \
                    size    145952

conflicts           yubikey-manager

python.rootname     yubikey-manager

# This must be bumped in step with the yubico-authenticator port's Python
# version. The full, built app must be tested: Python 3.8 previously failed at
# runtime.
python.default_version 312

depends_build-append \
    port:py${python.version}-poetry-core

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: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

livecheck.type  none