Files
nixpkgs/pkgs/development/python-modules/fido2/default.nix
T
Martin Weinelt f1b17434bf python3Packages.fido2: 2.0.0 -> 2.1.1
https://github.com/Yubico/python-fido2/releases/tag/2.1.1

This commit was automatically generated using update-python-libraries.
2026-02-01 16:43:51 +01:00

48 lines
972 B
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchPypi,
poetry-core,
pyscard,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "fido2";
version = "2.1.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-8TefhFhwzH/GTH8HMjw85B6MlsNwVOeeCs1WMLP+xaw=";
};
build-system = [ poetry-core ];
pythonRelaxDeps = [ "cryptography" ];
dependencies = [ cryptography ];
optional-dependencies = {
pcsc = [ pyscard ];
};
nativeCheckInputs = [ pytestCheckHook ];
pytestFlags = [
"-v"
"--no-device"
];
pythonImportsCheck = [ "fido2" ];
meta = {
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 = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ prusnak ];
};
}