about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-11-06 16:05:22 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-11-06 16:05:22 +0100
commita1977eebaad503e564db3b3f28d0810a2eee466f (patch)
tree1c84df0d7266f9b3232fbda0776fa4a3c930f759 /pkgs
parent509320f015df5fcd4f07e35b68d6799bce031f50 (diff)
home-assistant: backport litterrobot tests fix
The litterrobot tests broke when DST changed, so now they've pinned the
date and the tests should keep working.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/servers/home-assistant/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix
index ec3c6abb21589..3fb3e244928ca 100644
--- a/pkgs/servers/home-assistant/default.nix
+++ b/pkgs/servers/home-assistant/default.nix
@@ -3,6 +3,7 @@
 , callPackage
 , fetchFromGitHub
 , fetchPypi
+, fetchpatch
 , python311
 , substituteAll
 , ffmpeg-headless
@@ -399,6 +400,13 @@ in python.pkgs.buildPythonApplication rec {
       src = ./patches/ffmpeg-path.patch;
       ffmpeg = "${lib.getBin ffmpeg-headless}/bin/ffmpeg";
     })
+    (fetchpatch {
+      # freeze time in litterrobot tests
+      # https://github.com/home-assistant/core/pull/103444
+      name = "home-assistant-litterrobot-freeze-test-time.patch";
+      url = "https://github.com/home-assistant/core/commit/806205952ff863e2cf1875be406ea0254be5f13a.patch";
+      hash = "sha256-OVbmJWy275nYWrif9awAGIYlgZqrRPcYBhB0Vil8rmk=";
+    })
   ];
 
   postPatch = let