From 49cf03303ba08d0c516c7bde57332b9f148792ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 31 Oct 2025 21:00:45 -0700 Subject: [PATCH] python3Packages.bleak-retry-connector: update dependencies --- .../bleak-retry-connector/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) 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