diff --git a/pkgs/development/python-modules/bleak-retry-connector/default.nix b/pkgs/development/python-modules/bleak-retry-connector/default.nix index 1c665e12d6e8..5d3578df5ef2 100644 --- a/pkgs/development/python-modules/bleak-retry-connector/default.nix +++ b/pkgs/development/python-modules/bleak-retry-connector/default.nix @@ -9,6 +9,8 @@ pytestCheckHook, pytest-asyncio, pytest-cov-stub, + pythonOlder, + stdenv, }: buildPythonPackage rec { @@ -25,11 +27,16 @@ buildPythonPackage rec { build-system = [ poetry-core ]; - dependencies = [ - bleak - bluetooth-adapters - dbus-fast - ]; + dependencies = + lib.optionals (pythonOlder "3.14") [ + bleak + ] + ++ lib.optionals (stdenv.hostPlatform.isLinux && pythonOlder "3.14") [ + bluetooth-adapters + ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ + dbus-fast + ]; nativeCheckInputs = [ pytest-asyncio