nixpkgs/pkgs/tools/security/onlykey-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
784 B
Nix
Raw Normal View History

2020-11-04 17:31:55 +01:00
{ lib, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "onlykey-cli";
2022-05-24 05:48:26 +02:00
version = "1.2.9";
2020-11-04 17:31:55 +01:00
src = python3Packages.fetchPypi {
inherit version;
pname = "onlykey";
2022-05-24 05:48:26 +02:00
sha256 = "sha256-92CzDZgtmww0eABtjeBo6HNQ00sijWakjXLPJiOXY/A=";
2020-11-04 17:31:55 +01:00
};
2021-08-19 04:54:50 +02:00
propagatedBuildInputs = with python3Packages; [
aenum
cython
ecdsa
hidapi
onlykey-solo-python
prompt-toolkit
pynacl
six
];
2020-11-04 17:31:55 +01:00
# Requires having the physical onlykey (a usb security key)
doCheck = false;
2021-08-19 04:54:50 +02:00
pythonImportsCheck = [ "onlykey.cli" ];
2020-11-04 17:31:55 +01: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 ];
};
}