python3Packages.bleak-esphome: fix bleak 2.0.0 compat

This commit is contained in:
Martin Weinelt
2026-01-08 00:52:30 +01:00
parent 3e5d967a2c
commit 017427f79b
@@ -7,6 +7,7 @@
buildPythonPackage,
cython,
fetchFromGitHub,
fetchpatch,
habluetooth,
lru-dict,
poetry-core,
@@ -29,6 +30,14 @@ buildPythonPackage rec {
hash = "sha256-BFF4SqJxrQ+aaFtrNqS9fNqTV2Q+pOu5FFdYKeHkKj8=";
};
patches = [
(fetchpatch {
name = "bleak-2.0.0-compat.patch";
url = "https://github.com/Bluetooth-Devices/bleak-esphome/commit/a186eca427d1c0924ce29cbb46cde876e0c6e246.patch";
hash = "sha256-QPyN/k/xG03rZqYbexzN1GJaAqOe5FqfrDJ2fjiIkJs=";
})
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools>=75.8.2" setuptools