From b7e115c6c64c4f458617e265a2f03f8f09ad778a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 14 Sep 2025 18:56:56 -0700 Subject: [PATCH] python3Packages.bleak: only use async-timeout on Python < 3.11 --- pkgs/development/python-modules/bleak/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/bleak/default.nix b/pkgs/development/python-modules/bleak/default.nix index 6ec575619579..6ac36b12b90c 100644 --- a/pkgs/development/python-modules/bleak/default.nix +++ b/pkgs/development/python-modules/bleak/default.nix @@ -15,9 +15,9 @@ buildPythonPackage rec { pname = "bleak"; version = "1.0.1"; - format = "pyproject"; + pyproject = true; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "hbldh"; @@ -29,15 +29,17 @@ buildPythonPackage rec { postPatch = '' # bleak checks BlueZ's version with a call to `bluetoothctl --version` substituteInPlace bleak/backends/bluezdbus/version.py \ - --replace \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\" + --replace-fail \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\" ''; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ - async-timeout + dependencies = [ dbus-fast typing-extensions + ] + ++ lib.optionals (pythonOlder "3.11") [ + async-timeout ]; nativeCheckInputs = [