···2122let
23 defaultOverrides = [
24- # Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt
25- (mkOverride "python-slugify" "4.0.1" "69a517766e00c1268e5bbfc0d010a0a8508de0b18d30ad5a1ff357f8ae724270")
26-27 (self: super: {
28 async-upnp-client = super.async-upnp-client.overridePythonAttrs (oldAttrs: rec {
29- version = "0.19.2";
30 src = fetchFromGitHub {
31 owner = "StevenLooman";
32 repo = "async_upnp_client";
33- rev = version;
34- sha256 = "1v8d2lvxihqasn7866zssys16s0lgxkk6ri2dp4rr7wr8g9ixvdr";
35 };
36 });
37 })
0003839 # Pinned due to API changes in iaqualink>=2.0, remove after
40 # https://github.com/home-assistant/core/pull/48137 was merged
···95 });
96 })
9700098 # Pinned due to changes in total-connect-client>0.58 which made the tests fails at the moment
99 (self: super: {
100 total-connect-client = super.total-connect-client.overridePythonAttrs (oldAttrs: rec {
···112 (self: super: {
113 home-assistant-frontend = self.callPackage ./frontend.nix { };
114 })
115-116- # Pinned due to incompability with aioesphomeapi 8.0.0
117- (self: super: {
118- aioesphomeapi = super.aioesphomeapi.overrideAttrs (oldAttrs: rec {
119- version = "7.0.0";
120- src = fetchFromGitHub {
121- owner = "esphome";
122- repo = oldAttrs.pname;
123- rev = "v${version}";
124- hash = "sha256-ho/1fpq4yAgmYNERPqs51oqr08ncaN9+GRTUUuGU7ps=";
125- };
126- });
127- })
128 ];
129130 mkOverride = attrname: version: sha256:
···154 extraBuildInputs = extraPackages py.pkgs;
155156 # Don't forget to run parse-requirements.py after updating
157- hassVersion = "2021.8.8";
158159in with py.pkgs; buildPythonApplication rec {
160 pname = "homeassistant";
···171 owner = "home-assistant";
172 repo = "core";
173 rev = version;
174- sha256 = "1fj16qva04d9qhpnfxxacsp82vqqfha5c2zg4f850kld4qhwrgky";
175 };
176177 # leave this in, so users don't have to constantly update their downstream patch handling
···181182 postPatch = ''
183 substituteInPlace setup.py \
184- --replace "attrs==21.2.0" "attrs" \
185 --replace "awesomeversion==21.4.0" "awesomeversion" \
186 --replace "bcrypt==3.1.7" "bcrypt" \
187 --replace "cryptography==3.3.2" "cryptography" \
···234 pytest-xdist
235 pytestCheckHook
236 requests-mock
0237 jsonpickle
238 respx
239 # required by tests/auth/mfa_modules
···796 "--deselect tests/components/local_ip/test_config_flow.py::test_config_flow"
797 # netatmo/test_select.py: NoneType object has no attribute state
798 "--deselect tests/components/netatmo/test_select.py::test_select_schedule_thermostats"
000799 # helpers/test_system_info.py: AssertionError: assert 'Unknown' == 'Home Assistant Container'
800 "--deselect tests/helpers/test_system_info.py::test_container_installationtype"
801 # tests are located in tests/
···2122let
23 defaultOverrides = [
24+ # Pinned due to API changes in async-upnp-client>=0.20.0, remove after
0025 (self: super: {
26 async-upnp-client = super.async-upnp-client.overridePythonAttrs (oldAttrs: rec {
27+ version = "0.20.0";
28 src = fetchFromGitHub {
29 owner = "StevenLooman";
30 repo = "async_upnp_client";
31+ rev = "v${version}";
32+ sha256 = "sha256-jxYGOljV7tcsiAgpOhbXj7g7AwyP1kDDC83PiHG6ZFg=";
33 };
34 });
35 })
36+37+ # Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt
38+ (mkOverride "python-slugify" "4.0.1" "69a517766e00c1268e5bbfc0d010a0a8508de0b18d30ad5a1ff357f8ae724270")
3940 # Pinned due to API changes in iaqualink>=2.0, remove after
41 # https://github.com/home-assistant/core/pull/48137 was merged
···96 });
97 })
9899+ # Pinned due to API changes in 0.1.0
100+ (mkOverride "poolsense" "0.0.8" "09y4fq0gdvgkfsykpxnvmfv92dpbknnq5v82spz43ak6hjnhgcyp")
101+102 # Pinned due to changes in total-connect-client>0.58 which made the tests fails at the moment
103 (self: super: {
104 total-connect-client = super.total-connect-client.overridePythonAttrs (oldAttrs: rec {
···116 (self: super: {
117 home-assistant-frontend = self.callPackage ./frontend.nix { };
118 })
0000000000000119 ];
120121 mkOverride = attrname: version: sha256:
···145 extraBuildInputs = extraPackages py.pkgs;
146147 # Don't forget to run parse-requirements.py after updating
148+ hassVersion = "2021.9.6";
149150in with py.pkgs; buildPythonApplication rec {
151 pname = "homeassistant";
···162 owner = "home-assistant";
163 repo = "core";
164 rev = version;
165+ sha256 = "1ac56gdnhzkf19h29g0f54camw6v1cg5wx0crhm23r45qlfsjacs";
166 };
167168 # leave this in, so users don't have to constantly update their downstream patch handling
···172173 postPatch = ''
174 substituteInPlace setup.py \
0175 --replace "awesomeversion==21.4.0" "awesomeversion" \
176 --replace "bcrypt==3.1.7" "bcrypt" \
177 --replace "cryptography==3.3.2" "cryptography" \
···224 pytest-xdist
225 pytestCheckHook
226 requests-mock
227+ stdlib-list
228 jsonpickle
229 respx
230 # required by tests/auth/mfa_modules
···787 "--deselect tests/components/local_ip/test_config_flow.py::test_config_flow"
788 # netatmo/test_select.py: NoneType object has no attribute state
789 "--deselect tests/components/netatmo/test_select.py::test_select_schedule_thermostats"
790+ # wemo/test_sensor.py: KeyError for various power attributes
791+ "--deselect tests/components/wemo/test_sensor.py::TestInsightTodayEnergy::test_state_unavailable"
792+ "--deselect tests/components/wemo/test_sensor.py::TestInsightCurrentPower::test_state_unavailable"
793 # helpers/test_system_info.py: AssertionError: assert 'Unknown' == 'Home Assistant Container'
794 "--deselect tests/helpers/test_system_info.py::test_container_installationtype"
795 # tests are located in tests/
+2-2
pkgs/servers/home-assistant/frontend.nix
···4 # the frontend version corresponding to a specific home-assistant version can be found here
5 # https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json
6 pname = "home-assistant-frontend";
7- version = "20210809.0";
89 src = fetchPypi {
10 inherit pname version;
11- sha256 = "sha256-5NWNDhQ7XKK9/tC+SbpwOm2MSA2VGHLcE1ggyl6vPkc=";
12 };
1314 # there is nothing to strip in this package
···4 # the frontend version corresponding to a specific home-assistant version can be found here
5 # https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json
6 pname = "home-assistant-frontend";
7+ version = "20210830.0";
89 src = fetchPypi {
10 inherit pname version;
11+ sha256 = "sha256-4sNCnYFQ4IjmMPj7axgienZUMDo+GwTJ38cEf0iZzJI=";
12 };
1314 # there is nothing to strip in this package