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

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

  src = fetchPypi {
    inherit version;
    pname = "onlykey";
    sha256 = "sha256-ZmQnyZx9YlIIxMMdZ0U2zb+QANfcwrtG7iR1LpgzmBQ=";
  };

  propagatedBuildInputs = with python3Packages; [
    aenum
    cython
    ecdsa
    hidapi
    onlykey-solo-python
    prompt-toolkit
    pynacl
    six
  ];

  # Requires having the physical onlykey (a usb security key)
  doCheck = false;
  pythonImportsCheck = [ "onlykey.client" ];

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