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.
This commit is contained in:
parent
509320f015
commit
a1977eebaa
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
, callPackage
|
, callPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
, python311
|
, python311
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, ffmpeg-headless
|
, ffmpeg-headless
|
||||||
|
@ -399,6 +400,13 @@ in python.pkgs.buildPythonApplication rec {
|
||||||
src = ./patches/ffmpeg-path.patch;
|
src = ./patches/ffmpeg-path.patch;
|
||||||
ffmpeg = "${lib.getBin ffmpeg-headless}/bin/ffmpeg";
|
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
|
postPatch = let
|
||||||
|
|
Loading…
Reference in a new issue