2019-12-02 04:48:26 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, cryptography
|
|
|
|
, mock
|
|
|
|
, pyfakefs
|
2022-08-06 16:32:04 +00:00
|
|
|
, unittestCheckHook
|
2019-01-10 17:03:55 +00:00
|
|
|
}:
|
2018-06-28 14:08:48 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fido2";
|
2022-10-18 02:27:07 +00:00
|
|
|
version = "1.1.0";
|
2018-06-28 14:08:48 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-K0tOYgwhAEQsIGeODpUa1tHvs7pcqOu3IMTI1UMpNnQ=";
|
2018-06-28 14:08:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six cryptography ];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ unittestCheckHook mock pyfakefs ];
|
2019-01-10 17:03:55 +00:00
|
|
|
|
2022-08-06 16:32:04 +00:00
|
|
|
unittestFlagsArray = [ "-v" ];
|
2021-04-07 11:21:57 +00:00
|
|
|
|
2021-02-16 22:09:51 +00:00
|
|
|
pythonImportsCheck = [ "fido2" ];
|
|
|
|
|
2018-06-28 14:08:48 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Provides library functionality for FIDO 2.0, including communication with a device over USB.";
|
2019-12-02 04:48:26 +00:00
|
|
|
homepage = "https://github.com/Yubico/python-fido2";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
2018-06-28 14:08:48 +00:00
|
|
|
};
|
|
|
|
}
|