Files

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

48 lines
1005 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
python3Packages,
fetchPypi,
}:
python3Packages.buildPythonApplication rec {
pname = "onlykey-cli";
version = "1.2.10";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "onlykey";
hash = "sha256-ZmQnyZx9YlIIxMMdZ0U2zb+QANfcwrtG7iR1LpgzmBQ=";
};
build-system = with python3Packages; [
setuptools
];
pythonRemoveDeps = [
"Cython" # don't know why cython is listed as a runtime dependency, let's just remove it
];
dependencies = with python3Packages; [
aenum
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 ];
};
}