···29let
30 defaultOverrides = [
31 # Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt
32- (mkOverride "python-slugify" "4.0.1" "69a517766e00c1268e5bbfc0d010a0a8508de0b18d30ad5a1ff357f8ae724270")
000000000000000000003334 (self: super: {
35 huawei-lte-api = super.huawei-lte-api.overridePythonAttrs (oldAttrs: rec {
···58 })
5960 # Pinned due to API changes in 0.1.0
61- (mkOverride "poolsense" "0.0.8" "09y4fq0gdvgkfsykpxnvmfv92dpbknnq5v82spz43ak6hjnhgcyp")
6263 # Pinned due to API changes >0.3.5.3
64 (self: super: {
···105 })
106 ];
107108- mkOverride = attrName: version: sha256:
109 self: super: {
110 ${attrName} = super.${attrName}.overridePythonAttrs (oldAttrs: {
111 inherit version;
112 src = oldAttrs.src.override {
113- inherit version sha256;
114 };
115 });
116 };
···138 extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs);
139140 # Don't forget to run parse-requirements.py after updating
141- hassVersion = "2022.2.9";
142143in python.pkgs.buildPythonApplication rec {
144 pname = "homeassistant";
···156 owner = "home-assistant";
157 repo = "core";
158 rev = version;
159- hash = "sha256-So/MAKyFVa1TchrVE4ego1fRbgOXCoXR3w/rJLFSBqI=";
160 };
161162 # leave this in, so users don't have to constantly update their downstream patch handling
···217 yarl
218 # Not in setup.py, but used in homeassistant/util/package.py
219 setuptools
00220 ] ++ componentBuildInputs ++ extraBuildInputs;
221222 makeWrapperArgs = lib.optional skipPip "--add-flags --skip-pip";
···29let
30 defaultOverrides = [
31 # Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt
32+ (mkOverride "python-slugify" "4.0.1" "sha256-aaUXdm4AwSaOW7/A0BCgqFCN4LGNMK1aH/NX+K5yQnA=")
33+34+ # pytest-aiohttp>0.3.0 breaks home-assistant tests
35+ (self: super: {
36+ pytest-aiohttp = super.pytest-aiohttp.overridePythonAttrs (oldAttrs: rec {
37+ version = "0.3.0";
38+ src = oldAttrs.src.override {
39+ inherit version;
40+ sha256 = "0kx4mbs9bflycd8x9af0idcjhdgnzri3nw1qb0vpfyb3751qaaf9";
41+ };
42+ });
43+ aiohomekit = super.aiohomekit.overridePythonAttrs (oldAttrs: {
44+ doCheck = false; # requires aiohttp>=1.0.0
45+ });
46+ hass-nabucasa = super.hass-nabucasa.overridePythonAttrs (oldAttrs: {
47+ doCheck = false; # requires aiohttp>=1.0.0
48+ });
49+ zwave-js-server-python = super.zwave-js-server-python.overridePythonAttrs (oldAttrs: {
50+ doCheck = false; # requires aiohttp>=1.0.0
51+ });
52+ })
5354 (self: super: {
55 huawei-lte-api = super.huawei-lte-api.overridePythonAttrs (oldAttrs: rec {
···78 })
7980 # Pinned due to API changes in 0.1.0
81+ (mkOverride "poolsense" "0.0.8" "sha256-17MHrYRmqkH+1QLtgq2d6zaRtqvb9ju9dvPt9gB2xCc=")
8283 # Pinned due to API changes >0.3.5.3
84 (self: super: {
···125 })
126 ];
127128+ mkOverride = attrName: version: hash:
129 self: super: {
130 ${attrName} = super.${attrName}.overridePythonAttrs (oldAttrs: {
131 inherit version;
132 src = oldAttrs.src.override {
133+ inherit version hash;
134 };
135 });
136 };
···158 extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs);
159160 # Don't forget to run parse-requirements.py after updating
161+ hassVersion = "2022.3.1";
162163in python.pkgs.buildPythonApplication rec {
164 pname = "homeassistant";
···176 owner = "home-assistant";
177 repo = "core";
178 rev = version;
179+ hash = "sha256-bihb6DL8hQuRnJZp39Lh2qfTXr0tFxn7FHFZewttNOc=";
180 };
181182 # leave this in, so users don't have to constantly update their downstream patch handling
···237 yarl
238 # Not in setup.py, but used in homeassistant/util/package.py
239 setuptools
240+ # Not in setup.py, but uncounditionally imported via tests/conftest.py
241+ paho-mqtt
242 ] ++ componentBuildInputs ++ extraBuildInputs;
243244 makeWrapperArgs = lib.optional skipPip "--add-flags --skip-pip";
+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 = "20220203.1";
8 format = "wheel";
910 src = fetchPypi {
···12 pname = "home_assistant_frontend";
13 dist = "py3";
14 python = "py3";
15- sha256 = "sha256-6+TzBhHo9+eo6Hlk8RF+BAt4O0i759iAN+dKAPDmTNY=";
16 };
1718 # 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 = "20220301.0";
8 format = "wheel";
910 src = fetchPypi {
···12 pname = "home_assistant_frontend";
13 dist = "py3";
14 python = "py3";
15+ sha256 = "sha256-Gshw8GIiZfFHmldvxBhUKZ5NFWuBIA6ug7m7eEfQ+ao=";
16 };
1718 # there is nothing to strip in this package