python3Packages.bleak: only use async-timeout on Python < 3.11

Changed files
+8 -6
pkgs
development
python-modules
bleak
+8 -6
pkgs/development/python-modules/bleak/default.nix
···
buildPythonPackage rec {
pname = "bleak";
version = "1.0.1";
-
format = "pyproject";
-
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "hbldh";
···
postPatch = ''
# bleak checks BlueZ's version with a call to `bluetoothctl --version`
substituteInPlace bleak/backends/bluezdbus/version.py \
-
--replace \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\"
'';
-
nativeBuildInputs = [ poetry-core ];
-
propagatedBuildInputs = [
-
async-timeout
dbus-fast
typing-extensions
];
nativeCheckInputs = [
···
buildPythonPackage rec {
pname = "bleak";
version = "1.0.1";
+
pyproject = true;
+
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "hbldh";
···
postPatch = ''
# bleak checks BlueZ's version with a call to `bluetoothctl --version`
substituteInPlace bleak/backends/bluezdbus/version.py \
+
--replace-fail \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\"
'';
+
build-system = [ poetry-core ];
+
dependencies = [
dbus-fast
typing-extensions
+
]
+
++ lib.optionals (pythonOlder "3.11") [
+
async-timeout
];
nativeCheckInputs = [