python312Packages.zha-quirks: fix test with zigpy 0.65.3

This commit is contained in:
Martin Weinelt
2024-08-10 22:51:12 +02:00
parent 00e0597566
commit 247b77874e
2 changed files with 17 additions and 0 deletions
@@ -24,6 +24,11 @@ buildPythonPackage rec {
hash = "sha256-LudwIENP1KCX7+HwyklCUdAu5mRLDcnMEZBzbRH2FM0=";
};
patches = [
# https://github.com/zigpy/zha-device-handlers/pull/3296
./zigpy-0.65.3-compat.patch
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail ', "setuptools-git-versioning<2"' "" \
@@ -0,0 +1,12 @@
diff --git a/tests/conftest.py b/tests/conftest.py
index e64beb2..c1f0785 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -88,7 +88,6 @@ class MockApp(zigpy.application.ControllerApplication):
def app_controller_mock():
"""App controller mock."""
config = {"device": {"path": "/dev/ttyUSB0"}, "database": None}
- config = MockApp.SCHEMA(config)
app = MockApp(config)
return app