nixpkgs-suyu/pkgs/tools/security/onlykey-cli/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

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