2020-12-29 15:07:52 +00:00
|
|
|
{ lib, python3Packages }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "onlykey-cli";
|
2021-08-22 07:53:02 +00:00
|
|
|
version = "1.2.5";
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "onlykey";
|
2021-08-22 07:53:02 +00:00
|
|
|
sha256 = "sha256-7Pr1gXaPF5mctGxDciKKj0YDDQVFFi1+t6QztoKqpAA=";
|
2020-12-29 15:07:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
aenum
|
|
|
|
cython
|
|
|
|
ecdsa
|
|
|
|
hidapi
|
|
|
|
onlykey-solo-python
|
|
|
|
prompt-toolkit
|
|
|
|
pynacl
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2020-12-29 15:07:52 +00:00
|
|
|
# Requires having the physical onlykey (a usb security key)
|
|
|
|
doCheck = false;
|
2021-08-22 07:53:02 +00:00
|
|
|
pythonImportsCheck = [ "onlykey.cli" ];
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OnlyKey client and command-line tool";
|
|
|
|
homepage = "https://github.com/trustcrypto/python-onlykey";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ranfdev ];
|
|
|
|
};
|
|
|
|
}
|