1{
2 lib,
3 python3Packages,
4 fetchPypi,
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "onlykey-cli";
9 version = "1.2.10";
10 pyproject = true;
11
12 src = fetchPypi {
13 inherit version;
14 pname = "onlykey";
15 hash = "sha256-ZmQnyZx9YlIIxMMdZ0U2zb+QANfcwrtG7iR1LpgzmBQ=";
16 };
17
18 build-system = with python3Packages; [
19 setuptools
20 ];
21
22 pythonRemoveDeps = [
23 "Cython" # don't know why cython is listed as a runtime dependency, let's just remove it
24 ];
25
26 dependencies = with python3Packages; [
27 aenum
28 ecdsa
29 hidapi
30 onlykey-solo-python
31 prompt-toolkit
32 pynacl
33 six
34 ];
35
36 # Requires having the physical onlykey (a usb security key)
37 doCheck = false;
38 pythonImportsCheck = [ "onlykey.client" ];
39
40 meta = with lib; {
41 description = "OnlyKey client and command-line tool";
42 mainProgram = "onlykey-cli";
43 homepage = "https://github.com/trustcrypto/python-onlykey";
44 license = licenses.mit;
45 maintainers = with maintainers; [ ranfdev ];
46 };
47}