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:
@@ -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" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user