nixpkgs/pkgs/tools/security/onlykey-cli/default.nix
Wael M. Nasreddine 935646bc86
onlykey-cli: 1.2.9->1.2.10
Change the test import because onlykey.cli tries to establish a
connection with the hardware device.
2023-10-17 17:50:08 -07:00

35 lines
783 B
Nix

{ 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";
homepage = "https://github.com/trustcrypto/python-onlykey";
license = licenses.mit;
maintainers = with maintainers; [ ranfdev ];
};
}