aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-fido2/APKBUILD
blob: 3b34085710405923e53bcf544146fa1de5f50463 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Daniel Everett <deverett@gmail.com>
# Maintainer: Daniel Everett <deverett@gmail.com>
pkgname=py3-fido2
_pkgname=${pkgname#py3-}
pkgver=0.7.3
pkgrel=1
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"