# -*- 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
PortGroup           github 1.0

name                py-fido2
github.setup        Yubico python-fido2 0.9.1
categories          python security crypto
platforms           darwin
license             BSD
maintainers         {amake @amake} openmaintainer

description         Library for working with FIDO devices

long_description    Provides library functionality for communicating with a \
                    FIDO device over USB as well as verifying attestation \
                    and assertion signatures.

checksums           rmd160  71a03ccbe3297aa159b94b0ebe22ee42efc39f22 \
                    sha256  2cae751f3adabc82726310b65cf7b1ec7efa94a3dfe598e74771d2b19fbbbc3b \
                    size    214105

python.versions     27 35 36 37 38 39

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

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

    if {${python.version} < 34} {
        depends_lib-append  port:py${python.version}-enum34
    }

    livecheck.type  none
}
