Files
nixpkgs/pkgs/development/python-modules/fido2/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
972 B
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchPypi,
poetry-core,
pyscard,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "fido2";
version = "2.0.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-MGHNBec7Og72r8O4A9V8gmqi1qlzLRar1ydzYfWOeWQ=";
};
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 ];
};
}