···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 aioesphomeapi>=10.0.0
41- (self: super: {
42- aioesphomeapi = super.aioesphomeapi.overridePythonAttrs (oldAttrs: rec {
43- version = "9.1.5";
44- src = fetchFromGitHub {
45- owner = "esphome";
46- repo = "aioesphomeapi";
47- rev = "v${version}";
48- sha256 = "sha256-PPag65ZMz9KZEe9FmiB42/DgeM0vJw5L0haAG/jBjqg=";
49- };
50- });
51- })
52-53 # Pinned due to API changes in iaqualink>=2.0, remove after
54 # https://github.com/home-assistant/core/pull/48137 was merged
55 (self: super: {
···107 # Pinned due to API changes in 0.1.0
108 (mkOverride "poolsense" "0.0.8" "09y4fq0gdvgkfsykpxnvmfv92dpbknnq5v82spz43ak6hjnhgcyp")
109110- # Pinned due to missing simpliypy.errors.PendingAuthorizationError in simplisafe-python>12 which results in a failing import
111- (self: super: {
112- simplisafe-python = super.simplisafe-python.overridePythonAttrs (oldAttrs: rec {
113- version = "11.0.7";
114- src = fetchFromGitHub {
115- owner = "bachya";
116- repo = "simplisafe-python";
117- rev = version;
118- sha256 = "02nrighkdcd5n9qgbizm9gyfnpgdm4iibw7y8nbyfaxpng069fzp";
119- };
120- checkInputs = oldAttrs.checkInputs ++ [ super.aioresponses ];
121- });
122- })
123-124- # Pinned due to changes in total-connect-client>0.58 which made the tests fails at the moment
125- (self: super: {
126- total-connect-client = super.total-connect-client.overridePythonAttrs (oldAttrs: rec {
127- version = "0.58";
128- src = fetchFromGitHub {
129- owner = "craigjmidwinter";
130- repo = "total-connect-client";
131- rev = version;
132- sha256 = "1dqmgvgvwjh235wghygan2jnfvmn9vz789in2as3asig9cifix9z";
133- };
134- });
135- })
136-137 # home-assistant-frontend does not exist in python3.pkgs
138 (self: super: {
139 home-assistant-frontend = self.callPackage ./frontend.nix { };
···167 extraBuildInputs = extraPackages py.pkgs;
168169 # Don't forget to run parse-requirements.py after updating
170- hassVersion = "2021.10.7";
171172in with py.pkgs; buildPythonApplication rec {
173 pname = "homeassistant";
···184 owner = "home-assistant";
185 repo = "core";
186 rev = version;
187- sha256 = "1kibny2hd91c011bv7g46sn5q9fg6wmrbwzwckwa737d6gj27c1y";
188 };
189190 # leave this in, so users don't have to constantly update their downstream patch handling
···195 postPatch = ''
196 substituteInPlace setup.py \
197 --replace "bcrypt==3.1.7" "bcrypt" \
198- --replace "jinja2==3.0.1" "jinja2" \
199 --replace "pip>=8.0.3,<20.3" "pip" \
0200 --replace "yarl==1.6.3" "yarl==1.7.0"
201 substituteInPlace tests/test_config.py --replace '"/usr"' '"/build/media"'
202 '';
···237238 checkInputs = [
239 # test infrastructure (selectively from requirement_test.txt)
0240 pytest-aiohttp
0241 pytest-mock
242 pytest-rerunfailures
0243 pytest-xdist
244 pytestCheckHook
245 requests-mock
···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")
39000000000000040 # Pinned due to API changes in iaqualink>=2.0, remove after
41 # https://github.com/home-assistant/core/pull/48137 was merged
42 (self: super: {
···94 # Pinned due to API changes in 0.1.0
95 (mkOverride "poolsense" "0.0.8" "09y4fq0gdvgkfsykpxnvmfv92dpbknnq5v82spz43ak6hjnhgcyp")
9600000000000000000000000000097 # home-assistant-frontend does not exist in python3.pkgs
98 (self: super: {
99 home-assistant-frontend = self.callPackage ./frontend.nix { };
···127 extraBuildInputs = extraPackages py.pkgs;
128129 # Don't forget to run parse-requirements.py after updating
130+ hassVersion = "2021.11.0";
131132in with py.pkgs; buildPythonApplication rec {
133 pname = "homeassistant";
···144 owner = "home-assistant";
145 repo = "core";
146 rev = version;
147+ sha256 = "1bhm2ahc9fvh3czhfim3la0vdwdis2r86fa0qldqpnh11v25hb2s";
148 };
149150 # leave this in, so users don't have to constantly update their downstream patch handling
···155 postPatch = ''
156 substituteInPlace setup.py \
157 --replace "bcrypt==3.1.7" "bcrypt" \
0158 --replace "pip>=8.0.3,<20.3" "pip" \
159+ --replace "pyyaml==6.0" "pyyaml" \
160 --replace "yarl==1.6.3" "yarl==1.7.0"
161 substituteInPlace tests/test_config.py --replace '"/usr"' '"/build/media"'
162 '';
···197198 checkInputs = [
199 # test infrastructure (selectively from requirement_test.txt)
200+ freezegun
201 pytest-aiohttp
202+ pytest-freezegun
203 pytest-mock
204 pytest-rerunfailures
205+ pytest-socket
206 pytest-xdist
207 pytestCheckHook
208 requests-mock
+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 = "20211007.1";
89 src = fetchPypi {
10 inherit pname version;
11- sha256 = "sha256-wsDNLwzhpwH5vwdHRWhZGlumjFM8/S+kXProbD+VpE8=";
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 = "20211103.0";
89 src = fetchPypi {
10 inherit pname version;
11+ sha256 = "sha256-gny97mYHNwQ8KderebfLALCbIyddbwRoD5Ux6ahDdVk=";
12 };
1314 # there is nothing to strip in this package
···33 ./fix-chmod-exit-code.patch
34 # Workaround for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51433
35 ./disable-seek-hole.patch
36- ] ++ optional stdenv.hostPlatform.isCygwin ./coreutils-8.23-4.cygwin.patch
37- # fix gnulib tests on 32-bit ARM. Included on coreutils master.
38- # https://lists.gnu.org/r/bug-gnulib/2020-08/msg00225.html
39- ++ optional stdenv.hostPlatform.isAarch32 ./fix-gnulib-tests-arm.patch;
4041 postPatch = ''
42 # The test tends to fail on btrfs,f2fs and maybe other unusual filesystems.
···33 ./fix-chmod-exit-code.patch
34 # Workaround for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51433
35 ./disable-seek-hole.patch
36+ ] ++ optional stdenv.hostPlatform.isCygwin ./coreutils-8.23-4.cygwin.patch;
0003738 postPatch = ''
39 # The test tends to fail on btrfs,f2fs and maybe other unusual filesystems.