diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index cb5d580a01db..f38d8ee5d3e9 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -332,6 +332,9 @@ python3Packages.buildPythonApplication rec { # https://github.com/home-assistant/core/pull/172893 ./patches/pyjwt-2.13-compat.patch + + # remove is_xdist_controller usage + ./patches/syrupy-5.5-compat.patch ]; postPatch = '' diff --git a/pkgs/servers/home-assistant/patches/syrupy-5.5-compat.patch b/pkgs/servers/home-assistant/patches/syrupy-5.5-compat.patch new file mode 100644 index 000000000000..a57929bef17d --- /dev/null +++ b/pkgs/servers/home-assistant/patches/syrupy-5.5-compat.patch @@ -0,0 +1,22 @@ +diff --git a/tests/syrupy.py b/tests/syrupy.py +index a8779963109..0b4c009d59c 100644 +--- a/tests/syrupy.py ++++ b/tests/syrupy.py +@@ -18,7 +18,7 @@ from syrupy.location import PyTestLocation + from syrupy.report import SnapshotReport + from syrupy.session import ItemStatus, SnapshotSession + from syrupy.types import PropertyFilter, PropertyMatcher, PropertyPath, SerializableData +-from syrupy.utils import is_xdist_controller, is_xdist_worker ++from syrupy.utils import is_xdist_worker + import voluptuous as vol + import voluptuous_serialize + +@@ -406,8 +406,6 @@ def override_syrupy_finish(self: SnapshotSession) -> int: + indent=2, + ) + return exitstatus +- if is_xdist_controller(): +- return exitstatus + + if needs_xdist_merge: + worker_count = None