1{ lib, python3Packages, fetchPypi }:
2
3python3Packages.buildPythonApplication rec {
4 pname = "onlykey-cli";
5 version = "1.2.10";
6
7 src = fetchPypi {
8 inherit version;
9 pname = "onlykey";
10 sha256 = "sha256-ZmQnyZx9YlIIxMMdZ0U2zb+QANfcwrtG7iR1LpgzmBQ=";
11 };
12
13 propagatedBuildInputs = with python3Packages; [
14 aenum
15 cython
16 ecdsa
17 hidapi
18 onlykey-solo-python
19 prompt-toolkit
20 pynacl
21 six
22 ];
23
24 # Requires having the physical onlykey (a usb security key)
25 doCheck = false;
26 pythonImportsCheck = [ "onlykey.client" ];
27
28 meta = with lib; {
29 description = "OnlyKey client and command-line tool";
30 homepage = "https://github.com/trustcrypto/python-onlykey";
31 license = licenses.mit;
32 maintainers = with maintainers; [ ranfdev ];
33 };
34}