depot/third_party/nixpkgs/pkgs/development/python-modules/fido2/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

55 lines
992 B
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchPypi
, mock
, poetry-core
, pyfakefs
, pythonOlder
, six
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "fido2";
version = "1.1.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-YRDZExBvdhmSAbMtJisoV1YsxGuh0LnFH7zjDck2xXM=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
cryptography
six
];
nativeCheckInputs = [
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";
changelog = "https://github.com/Yubico/python-fido2/releases/tag/${version}";
license = licenses.bsd2;
maintainers = with maintainers; [ prusnak ];
};
}