3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #134755 from kalbasit/update-onlykey-cli

This commit is contained in:
Sandro 2021-08-19 21:27:59 +02:00 committed by GitHub
commit ea5e529222
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 51 additions and 4 deletions

View file

@ -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;
};
}

View file

@ -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";

View file

@ -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 { };