@@ -1,4 +1,4 @@
1−{ lib, fetchurl, fetchFromGitHub, fetchpatch, python3, protobuf3_6
1+{ stdenv, lib, fetchurl, fetchFromGitHub, fetchpatch, python3, protobuf3_6
22
33# Look up dependencies of specified components in component-packages.nix
44, extraComponents ? [ ]
@@ -67,7 +67,7 @@ let
6767 extraBuildInputs = extraPackages py.pkgs;
6868
6969 # Don't forget to run parse-requirements.py after updating
70− hassVersion = "0.109.0";
70+ hassVersion = "0.109.6";
7171
7272in with py.pkgs; buildPythonApplication rec {
7373 pname = "homeassistant";
@@ -86,7 +86,7 @@ in with py.pkgs; buildPythonApplication rec {
8686 owner = "home-assistant";
8787 repo = "home-assistant";
8888 rev = version;
89− sha256 = "1b5y464yhngivxkz3cg2b7j2ssawy7fqr3si5pdmqkgz1dbqihhn";
89+ sha256 = "133l6n165yivnc9qmrahk423hmns0hn0dbnx4ys7yaw3x5hqwyns";
9090 };
9191
9292 propagatedBuildInputs = [
@@ -98,6 +98,9 @@ in with py.pkgs; buildPythonApplication rec {
9898 sqlalchemy aiohttp-cors hass-frontend pyotp pyqrcode ciso8601
9999 ] ++ componentBuildInputs ++ extraBuildInputs;
100100
101+ # upstream only tests on Linux, so do we.
102+ doCheck = stdenv.isLinux;
103+
101104 checkInputs = [
102105 asynctest pytest pytest-aiohttp requests-mock hass-nabucasa netdisco pydispatcher
103106 ];
@@ -118,6 +121,10 @@ in with py.pkgs; buildPythonApplication rec {
118121
119122 makeWrapperArgs = lib.optional skipPip "--add-flags --skip-pip";
120123
124+ passthru = {
125+ inherit (py.pkgs) hass-frontend;
126+ };
127+
121128 meta = with lib; {
122129 homepage = "https://home-assistant.io/";
123130 description = "Open-source home automation platform running on Python 3";