solo-python: init at 0.0.15

Support for solokeys U2F tokens
This commit is contained in:
wucke13 2019-09-25 16:56:45 +02:00 committed by Lassulus
parent f5cc5ce8d6
commit 348fac7b52
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ lib, buildPythonPackage, fetchFromGitHub
, click, ecdsa, fido2, intelhex, pyserial, pyusb, requests}:
buildPythonPackage rec {
pname = "solo-python";
version = "0.0.15";
format = "flit";
src = fetchFromGitHub {
owner = "solokeys";
repo = pname;
rev = version;
sha256 = "14na9s65hxzx141bdv0j7rx1wi3cv85jzpdivsq1rwp6hdhiazr1";
};
# TODO: remove ASAP
patchPhase = ''
substituteInPlace pyproject.toml --replace "fido2 == 0.7.0" "fido2 >= 0.7.0"
'';
propagatedBuildInputs = [
click
ecdsa
fido2
intelhex
pyserial
pyusb
requests
];
meta = with lib; {
description = "Python tool and library for SoloKeys";
homepage = "https://github.com/solokeys/solo-python";
maintainers = with maintainers; [ wucke13 ];
license = with licenses; [ asl20 mit ];
};
}

View file

@ -6036,6 +6036,8 @@ in {
yarl = callPackage ../development/python-modules/yarl { };
solo-python = disabledIf (! pythonAtLeast "3.6") (callPackage ../development/python-modules/solo-python { });
suseapi = callPackage ../development/python-modules/suseapi { };
typed-ast = callPackage ../development/python-modules/typed-ast { };