From 2e11500ee74a6079c6bbddd4d80cd9c79d26614f Mon Sep 17 00:00:00 2001 From: panicgh <79252025+panicgh@users.noreply.github.com> Date: Wed, 6 Aug 2025 01:37:23 +0000 Subject: [PATCH] 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. --- pkgs/development/python-modules/fido2/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/fido2/default.nix b/pkgs/development/python-modules/fido2/default.nix index eb93e5a454a9..48bafe381f7d 100644 --- a/pkgs/development/python-modules/fido2/default.nix +++ b/pkgs/development/python-modules/fido2/default.nix @@ -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" ];