3
0
Fork 0
forked from mirrors/nixpkgs

home-assistant: add version tester

Yell at me if I fail to update the src hash.
This commit is contained in:
Martin Weinelt 2022-12-21 17:45:07 +01:00
parent ed92b8d514
commit 5354e33e4a
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -8,6 +8,8 @@
, ffmpeg-headless , ffmpeg-headless
, inetutils , inetutils
, nixosTests , nixosTests
, home-assistant
, testers
# Look up dependencies of specified components in component-packages.nix # Look up dependencies of specified components in component-packages.nix
, extraComponents ? [ ] , extraComponents ? [ ]
@ -359,6 +361,10 @@ in python.pkgs.buildPythonApplication rec {
tests = { tests = {
nixos = nixosTests.home-assistant; nixos = nixosTests.home-assistant;
components = callPackage ./tests.nix { }; components = callPackage ./tests.nix { };
version = testers.testVersion {
package = home-assistant;
command = "hass --version";
};
}; };
}; };