# Contributor: Daniel Everett # Maintainer: Rasmus Thomsen pkgname=yubikey-manager pkgver=5.1.1 pkgrel=1 pkgdesc="Python library and command line tool for configuring any YubiKey over all USB interfaces" url="https://developers.yubico.com/yubikey-manager/" arch="noarch" license="BSD-2-Clause" depends=" ccid pcsc-lite pcsc-lite-libs py3-click py3-cryptography py3-fido2 py3-keyring py3-pyscard py3-ykman python3 yubico-c " makedepends=" py3-poetry-core py3-gpep517 " checkdepends="py3-pytest py3-makefun" subpackages="$pkgname-pyc py3-ykman" source="https://github.com/Yubico/yubikey-manager/releases/download/$pkgver/yubikey_manager-$pkgver.tar.gz" builddir="$srcdir/yubikey_manager-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } ykman() { depends= amove usr/lib } sha512sums=" 9da9588bb311594d2b4d2d8b234b64f333dfc7dc57145e250965bd9d058cfda43a9c9a32991081ac069819812bebaf0c10a24afab4ac444891ab21d2cff81c06 yubikey_manager-5.1.1.tar.gz "