diff --git a/pkgs/development/python-modules/pyzerproc/default.nix b/pkgs/development/python-modules/pyzerproc/default.nix index a453014fe8be..b5eb54916717 100644 --- a/pkgs/development/python-modules/pyzerproc/default.nix +++ b/pkgs/development/python-modules/pyzerproc/default.nix @@ -5,6 +5,7 @@ , fetchFromGitHub , pytest-asyncio , pytest-mock +, pythonAtLeast , pytestCheckHook , pythonOlder }: @@ -38,6 +39,11 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTestPaths = lib.optionals (pythonAtLeast "3.11") [ + # unittest.mock.InvalidSpecError: Cannot spec a Mock object. + "tests/test_light.py" + ]; + pythonImportsCheck = [ "pyzerproc" ];