# Contributor: Daniel Everett # Maintainer: Daniel Everett pkgname=py3-fido2 _pkgname=${pkgname#py3-} pkgver=0.7.3 pkgrel=0 pkgdesc="Provides library functionality for FIDO 2.0, including communication with a device over USB" url="https://developers.yubico.com/python-fido2/" arch="noarch" license="BSD-2-Clause AND Apache-2.0 AND MPL-2.0" depends="py3-cryptography py3-six" makedepends="py3-setuptools" checkdepends="py3-cparser py3-mock" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz broken-check.patch " builddir="$srcdir"/$_pkgname-$pkgver build() { python3 setup.py build } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } check() { # Requires downloading 'pyfakefs' module touch "test/__init__.py" python3 setup.py test } sha512sums="715779ecc9dba19de0e45df13d018e7dd223f20f5662860874aa8aa6f811c1df71c07656d21b49a4b6f14a149134d8af6bac076a7f71cb7392ca2fef70b173e1 fido2-0.7.3.tar.gz 2c2a3d2423cd9e7178e5423a08f118054d70c717b31bcab4ac71ddc5cf73031973454ce2c67a1d1f19bbf81a3401d6359a1b9f2f3028ab11e28815ac2b7a261b broken-check.patch"