nixpkgs/pkgs/by-name/on/onlykey-cli/package.nix

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

39 lines
861 B
Nix
Raw Normal View History

{ lib, python3Packages, fetchPypi }:
2020-11-04 16:31:55 +00:00
python3Packages.buildPythonApplication rec {
pname = "onlykey-cli";
version = "1.2.10";
2020-11-04 16:31:55 +00:00
src = fetchPypi {
2020-11-04 16:31:55 +00:00
inherit version;
pname = "onlykey";
hash = "sha256-ZmQnyZx9YlIIxMMdZ0U2zb+QANfcwrtG7iR1LpgzmBQ=";
2020-11-04 16:31:55 +00:00
};
build-system = with python3Packages; [
cython
];
2021-08-19 02:54:50 +00:00
propagatedBuildInputs = with python3Packages; [
aenum
ecdsa
hidapi
onlykey-solo-python
prompt-toolkit
pynacl
six
];
2020-11-04 16:31:55 +00:00
# Requires having the physical onlykey (a usb security key)
doCheck = false;
pythonImportsCheck = [ "onlykey.client" ];
2020-11-04 16:31:55 +00:00
meta = with lib; {
description = "OnlyKey client and command-line tool";
mainProgram = "onlykey-cli";
2020-11-04 16:31:55 +00:00
homepage = "https://github.com/trustcrypto/python-onlykey";
license = licenses.mit;
maintainers = with maintainers; [ ranfdev ];
};
}