1{ lib
2, buildPythonPackage
3, fetchPypi
4, six
5, cryptography
6, mock
7, pyfakefs
8, unittestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "fido2";
13 version = "1.1.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-K0tOYgwhAEQsIGeODpUa1tHvs7pcqOu3IMTI1UMpNnQ=";
18 };
19
20 propagatedBuildInputs = [ six cryptography ];
21
22 checkInputs = [ unittestCheckHook mock pyfakefs ];
23
24 unittestFlagsArray = [ "-v" ];
25
26 pythonImportsCheck = [ "fido2" ];
27
28 meta = with lib; {
29 description = "Provides library functionality for FIDO 2.0, including communication with a device over USB.";
30 homepage = "https://github.com/Yubico/python-fido2";
31 license = licenses.bsd2;
32 maintainers = with maintainers; [ prusnak ];
33 };
34}