-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathctap-keyring-device.nix
47 lines (41 loc) · 1007 Bytes
/
ctap-keyring-device.nix
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
35
36
37
38
39
40
41
42
43
44
45
46
47
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
# , pyobjc-framework-LocalAuthentication
, cryptography
, keyring
, fido2
, pytest
, pytest-flake8
, pytest-black
, pytest-cov
}:
buildPythonPackage rec {
pname = "ctap-keyring-device";
version = "1.0.6";
src = fetchPypi {
inherit pname version;
sha256 = "a44264bb3d30c4ab763e4a3098b136602f873d86b666210d2bb1405b5e0473f6";
};
propagatedBuildInputs = [
# pyobjc-framework-LocalAuthentication # needs cocoa so probably will not work
cryptography
keyring
fido2
];
checkInputs = [
pytest
pytest-flake8
pytest-black
pytest-cov
];
pythonImportsCheck = [ "ctap_keyring_device" ];
meta = with lib; {
description = "CTAP (client-to-authenticator-protocol) device backed by python's keyring library";
homepage = "https://github.com/dany74q/ctap-keyring-device";
license = licenses.mit;
maintainers = with maintainers; [ lukasz-walkiewicz ];
platforms = stdenv.lib.platforms.unix;
};
}