b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
34 lines
740 B
Nix
34 lines
740 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, six
|
|
, cryptography
|
|
, mock
|
|
, pyfakefs
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fido2";
|
|
version = "1.0.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-JQmklYtmbXR/1XVN+pNX2i2BtS7cDs/3W2jOqTkVTAI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ six cryptography ];
|
|
|
|
checkInputs = [ unittestCheckHook mock pyfakefs ];
|
|
|
|
unittestFlagsArray = [ "-v" ];
|
|
|
|
pythonImportsCheck = [ "fido2" ];
|
|
|
|
meta = with lib; {
|
|
description = "Provides library functionality for FIDO 2.0, including communication with a device over USB.";
|
|
homepage = "https://github.com/Yubico/python-fido2";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ prusnak ];
|
|
};
|
|
}
|