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.

panicgh 2e11500e 34f9c7ae

Changed files
+4 -4
pkgs
development
python-modules
fido2
+4 -4
pkgs/development/python-modules/fido2/default.nix
···
fetchPypi,
poetry-core,
pyscard,
-
pythonOlder,
pytestCheckHook,
}:
···
pname = "fido2";
version = "2.0.0";
pyproject = true;
-
-
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
···
nativeCheckInputs = [ pytestCheckHook ];
-
unittestFlagsArray = [ "-v" ];
pythonImportsCheck = [ "fido2" ];
···
fetchPypi,
poetry-core,
pyscard,
pytestCheckHook,
}:
···
pname = "fido2";
version = "2.0.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
···
nativeCheckInputs = [ pytestCheckHook ];
+
pytestFlags = [
+
"-v"
+
"--no-device"
+
];
pythonImportsCheck = [ "fido2" ];