summary refs log tree commit diff
path: root/pkgs/tools/security/onlykey-cli/default.nix
blob: b342f203b44c65cdd1dd00d41d414a71ab15a75e (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
{ lib, python3Packages }:

python3Packages.buildPythonApplication rec {
  pname = "onlykey-cli";
  version = "1.2.2";

  src = python3Packages.fetchPypi {
    inherit version;
    pname = "onlykey";
    sha256 = "1qkbgab5xlg7bd0jfzf8k5ppb1zhib76r050fiaqi5wibrqrfwdi";
  };

  # Requires having the physical onlykey (a usb security key)
  doCheck = false;
  propagatedBuildInputs =
    with python3Packages; [ hidapi aenum six prompt_toolkit pynacl ecdsa cython ];

  meta = with lib; {
    description = "OnlyKey client and command-line tool";
    homepage = "https://github.com/trustcrypto/python-onlykey";
    license = licenses.mit;
    maintainers = with maintainers; [ ranfdev ];
  };
}