diff --git a/pkgs/development/python-modules/screenlogicpy/default.nix b/pkgs/development/python-modules/screenlogicpy/default.nix index 3d3f7d230261..247541831635 100644 --- a/pkgs/development/python-modules/screenlogicpy/default.nix +++ b/pkgs/development/python-modules/screenlogicpy/default.nix @@ -2,6 +2,7 @@ , async-timeout , buildPythonPackage , fetchFromGitHub +, pythonAtLeast , pythonOlder , pytest-asyncio , setuptools @@ -43,6 +44,12 @@ buildPythonPackage rec { "test_discovery_async_discover" "test_gateway_discovery" "test_gateway" + ] ++ lib.optionals (pythonAtLeast "3.12") [ + # Tests block on Python 3.12 + "test_sub_unsub" + "test_attach_existing" + "test_login_async_connect_to_gateway" + "test_login_async_gateway_connect" ]; pythonImportsCheck = [