python3Packages.fido2: skip device tests (#431308)

By default, unit tests include hardware authenticator device tests. They
hang nixpkgs builds for a long time waiting for a touch of the
authenticator device. Skip such tests to avoid waiting.
This commit is contained in:
panicgh
2025-08-06 01:37:23 +00:00
committed by Martin Weinelt
parent 34f9c7ae4f
commit 2e11500ee7
@@ -5,7 +5,6 @@
fetchPypi,
poetry-core,
pyscard,
pythonOlder,
pytestCheckHook,
}:
@@ -14,8 +13,6 @@ buildPythonPackage rec {
version = "2.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-MGHNBec7Og72r8O4A9V8gmqi1qlzLRar1ydzYfWOeWQ=";
@@ -33,7 +30,10 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
unittestFlagsArray = [ "-v" ];
pytestFlags = [
"-v"
"--no-device"
];
pythonImportsCheck = [ "fido2" ];