forked from mirrors/nixpkgs
Merge pull request #134755 from kalbasit/update-onlykey-cli
This commit is contained in:
commit
ea5e529222
|
@ -0,0 +1,35 @@
|
|||
{ buildPythonPackage
|
||||
, click
|
||||
, ecdsa
|
||||
, fetchPypi
|
||||
, fido2
|
||||
, intelhex
|
||||
, lib
|
||||
, pyserial
|
||||
, pyusb
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "onlykey-solo-python";
|
||||
version = "0.0.28";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-Mbi5So2OgeXjg4Fzg7v2gAJuh1Y7ZCYu8Lrha/7PQfY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ click ecdsa fido2 intelhex pyserial pyusb requests ];
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "solo" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/trustcrypto/onlykey-solo-python";
|
||||
description = "Python library for OnlyKey with Solo FIDO2";
|
||||
maintainers = with maintainers; [ kalbasit ];
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
||||
|
|
@ -2,18 +2,28 @@
|
|||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "onlykey-cli";
|
||||
version = "1.2.2";
|
||||
version = "1.2.5";
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
inherit version;
|
||||
pname = "onlykey";
|
||||
sha256 = "1qkbgab5xlg7bd0jfzf8k5ppb1zhib76r050fiaqi5wibrqrfwdi";
|
||||
sha256 = "sha256-7Pr1gXaPF5mctGxDciKKj0YDDQVFFi1+t6QztoKqpAA=";
|
||||
};
|
||||
|
||||
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;
|
||||
propagatedBuildInputs =
|
||||
with python3Packages; [ hidapi aenum six prompt-toolkit pynacl ecdsa cython ];
|
||||
pythonImportsCheck = [ "onlykey.cli" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "OnlyKey client and command-line tool";
|
||||
|
|
|
@ -5009,6 +5009,8 @@ in {
|
|||
|
||||
onkyo-eiscp = callPackage ../development/python-modules/onkyo-eiscp { };
|
||||
|
||||
onlykey-solo-python = callPackage ../development/python-modules/onlykey-solo-python { };
|
||||
|
||||
onnx = callPackage ../development/python-modules/onnx { };
|
||||
|
||||
open-garage = callPackage ../development/python-modules/open-garage { };
|
||||
|
|
Loading…
Reference in a new issue