Merge pull request #182996 from mweinelt/home-assistant

authored by Martin Weinelt and committed by GitHub e1cbea75 0e0cc471

+149 -6
+1 -1
pkgs/development/python-modules/aiogithubapi/default.nix
··· 45 # Upstream is releasing with the help of a CI to PyPI, GitHub releases 46 # are not in their focus 47 substituteInPlace pyproject.toml \ 48 - --replace 'version="main",' 'version="${version}",' 49 ''; 50 51 pythonImportsCheck = [
··· 45 # Upstream is releasing with the help of a CI to PyPI, GitHub releases 46 # are not in their focus 47 substituteInPlace pyproject.toml \ 48 + --replace 'version = "0"' 'version = "${version}"' 49 ''; 50 51 pythonImportsCheck = [
+2 -2
pkgs/development/python-modules/simplisafe-python/default.nix
··· 20 21 buildPythonPackage rec { 22 pname = "simplisafe-python"; 23 - version = "2022.07.0"; 24 format = "pyproject"; 25 26 disabled = pythonOlder "3.8"; ··· 29 owner = "bachya"; 30 repo = pname; 31 rev = "refs/tags/${version}"; 32 - sha256 = "sha256-v3N2f5B6BrwTb4ik2bME8OLzwsHZ3qWx+Jx1pv7KX8A="; 33 }; 34 35 nativeBuildInputs = [
··· 20 21 buildPythonPackage rec { 22 pname = "simplisafe-python"; 23 + version = "2022.07.1"; 24 format = "pyproject"; 25 26 disabled = pythonOlder "3.8"; ··· 29 owner = "bachya"; 30 repo = pname; 31 rev = "refs/tags/${version}"; 32 + sha256 = "sha256-mbdL1fX86OPMw6I7Lk7NDhm2kE6/iamYbyvYvJrkwLQ="; 33 }; 34 35 nativeBuildInputs = [
+1 -1
pkgs/servers/home-assistant/component-packages.nix
··· 2 # Do not edit! 3 4 { 5 - version = "2022.7.5"; 6 components = { 7 "abode" = ps: with ps; [ 8 abodepy
··· 2 # Do not edit! 3 4 { 5 + version = "2022.7.7"; 6 components = { 7 "abode" = ps: with ps; [ 8 abodepy
+145 -2
pkgs/servers/home-assistant/default.nix
··· 31 # Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt 32 33 (self: super: { 34 backoff = super.backoff.overridePythonAttrs (oldAttrs: rec { 35 version = "1.11.1"; 36 src = fetchFromGitHub { ··· 56 }); 57 }) 58 59 # pytest-aiohttp>0.3.0 breaks home-assistant tests 60 (self: super: { 61 pytest-aiohttp = super.pytest-aiohttp.overridePythonAttrs (oldAttrs: rec { ··· 114 }) 115 116 (self: super: { 117 python-slugify = super.python-slugify.overridePythonAttrs (oldAttrs: rec { 118 pname = "python-slugify"; 119 version = "4.0.1"; ··· 124 }); 125 }) 126 127 # Pinned due to API changes in 0.4.0 128 (self: super: { 129 vilfo-api-client = super.vilfo-api-client.overridePythonAttrs (oldAttrs: rec { ··· 150 }); 151 }) 152 153 # home-assistant-frontend does not exist in python3.pkgs 154 (self: super: { 155 home-assistant-frontend = self.callPackage ./frontend.nix { }; ··· 189 extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs); 190 191 # Don't forget to run parse-requirements.py after updating 192 - hassVersion = "2022.7.5"; 193 194 in python.pkgs.buildPythonApplication rec { 195 pname = "homeassistant"; ··· 207 owner = "home-assistant"; 208 repo = "core"; 209 rev = version; 210 - hash = "sha256-fUKT9ZSu8dhwapvdjq50t5kh6ZwGsMteuvCjYpPQNx0="; 211 }; 212 213 # leave this in, so users don't have to constantly update their downstream patch handling
··· 31 # Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt 32 33 (self: super: { 34 + advantage-air = super.advantage-air.overridePythonAttrs (oldAttrs: rec { 35 + version = "0.3.1"; 36 + src = super.fetchPypi { 37 + pname = "advantage_air"; 38 + inherit version; 39 + hash = "sha256-C+cB6oHmbr9mHZKnbls42yenQy3+L8huLk9wKazIWfU="; 40 + }; 41 + }); 42 + }) 43 + 44 + (self: super: { 45 + aiohomekit = super.aiohomekit.overridePythonAttrs (oldAttrs: rec { 46 + version = "0.7.20"; 47 + src = fetchFromGitHub { 48 + owner = "Jc2k"; 49 + repo = "aiohomekit"; 50 + rev = "refs/tags/${version}"; 51 + hash = "sha256-g7N+CIBJCMnW4FjN502SahhSpPS1p7AXZvduteHu+Z4="; 52 + }; 53 + }); 54 + }) 55 + 56 + (self: super: { 57 backoff = super.backoff.overridePythonAttrs (oldAttrs: rec { 58 version = "1.11.1"; 59 src = fetchFromGitHub { ··· 79 }); 80 }) 81 82 + (self: super: { 83 + gridnet = super.gridnet.overridePythonAttrs (oldAttrs: rec { 84 + version = "4.0.0"; 85 + src = fetchFromGitHub { 86 + owner = "klaasnicolaas"; 87 + repo = "python-gridnet"; 88 + rev = "refs/tags/v${version}"; 89 + hash = "sha256-Ihs8qUx50tAUcRBsVArRhzoLcQUi1vbYh8sPyK75AEk="; 90 + }; 91 + }); 92 + }) 93 + 94 + (self: super: { 95 + p1monitor = super.p1monitor.overridePythonAttrs (oldAttrs: rec { 96 + version = "1.0.1"; 97 + src = fetchFromGitHub { 98 + owner = "klaasnicolaas"; 99 + repo = "python-p1monitor"; 100 + rev = "refs/tags/v${version}"; 101 + hash = "sha256-g3isA2gF2AD+VVzTqpnD+YiJQ9Kcl0VKvwd5l5Yx/Uo="; 102 + }; 103 + }); 104 + }) 105 + 106 # pytest-aiohttp>0.3.0 breaks home-assistant tests 107 (self: super: { 108 pytest-aiohttp = super.pytest-aiohttp.overridePythonAttrs (oldAttrs: rec { ··· 161 }) 162 163 (self: super: { 164 + pyatmo = super.pyatmo.overridePythonAttrs (oldAttrs: rec { 165 + version = "6.2.4"; 166 + src = fetchFromGitHub { 167 + owner = "jabesq"; 168 + repo = "pyatmo"; 169 + rev = "refs/tags/v${version}"; 170 + hash = "sha256-VXkQByaNA02fwBO2yuf7w1ZF/oJwd/h21de1EQlCu2U="; 171 + }; 172 + checkInputs = [ super.freezegun ]; 173 + }); 174 + }) 175 + 176 + (self: super: { 177 + python-homewizard-energy = super.python-homewizard-energy.overridePythonAttrs (oldAttrs: rec { 178 + version = "1.0.3"; 179 + src = fetchFromGitHub { 180 + owner = "DCSBL"; 181 + repo = "python-homewizard-energy"; 182 + rev = "refs/tags/v${version}"; 183 + hash = "sha256-ioISqRFZZCojTJ/KYS8QUtoEpBNOPqY9lC9NFbZyh5A="; 184 + }; 185 + }); 186 + }) 187 + 188 + # pyunifiprotect excludes pydantic==1.9.1 189 + (self: super: { 190 + pydantic = super.pydantic.overridePythonAttrs (oldAttrs: rec { 191 + version = "1.9.0"; 192 + src = fetchFromGitHub { 193 + owner = "samuelcolvin"; 194 + repo = "pydantic"; 195 + rev = "refs/tags/v${version}"; 196 + hash = "sha256-C4WP8tiMRFmkDkQRrvP3yOSM2zN8pHJmX9cdANIckpM="; 197 + }; 198 + }); 199 + }) 200 + 201 + (self: super: { 202 + pydeconz = super.pydeconz.overridePythonAttrs (oldAttrs: rec { 203 + version = "98"; 204 + src = fetchFromGitHub { 205 + owner = "Kane610"; 206 + repo = "deconz"; 207 + rev = "refs/tags/v${version}"; 208 + hash = "sha256-hCJRoyDWDxrBrxs2g6mVh7MOe6UMd+S8+ftfWyzWgH8="; 209 + }; 210 + }); 211 + }) 212 + 213 + (self: super: { 214 python-slugify = super.python-slugify.overridePythonAttrs (oldAttrs: rec { 215 pname = "python-slugify"; 216 version = "4.0.1"; ··· 221 }); 222 }) 223 224 + (self: super: { 225 + pytradfri = super.pytradfri.overridePythonAttrs (oldAttrs: rec { 226 + version = "9.0.0"; 227 + src = fetchFromGitHub { 228 + owner = "home-assistant-libs"; 229 + repo = "pytradfri"; 230 + rev = "refs/tags/${version}"; 231 + hash = "sha256-12ol+2CnoPfkxmDGJJAkoafHGpQuWC4lh0N7lSvx2DE="; 232 + }; 233 + }); 234 + }) 235 + 236 + (self: super: { 237 + solax = super.solax.overridePythonAttrs (oldAttrs: rec { 238 + version = "0.2.9"; 239 + src = super.fetchPypi { 240 + pname = "solax"; 241 + inherit version; 242 + hash = "sha256-5m2wxdTshAsEfldPAyXqAYYtH1VjqERRBUGzX6pV85I="; 243 + }; 244 + }); 245 + }) 246 + 247 + (self: super: { 248 + pysoma = super.pysoma.overridePythonAttrs (oldAttrs: rec { 249 + version = "0.0.10"; 250 + src = super.fetchPypi { 251 + pname = "pysoma"; 252 + inherit version; 253 + hash = "sha256-sU1qHbAjdIUu0etjate8+U1zvunbw3ddBtDVUU10CuE="; 254 + }; 255 + }); 256 + }) 257 + 258 # Pinned due to API changes in 0.4.0 259 (self: super: { 260 vilfo-api-client = super.vilfo-api-client.overridePythonAttrs (oldAttrs: rec { ··· 281 }); 282 }) 283 284 + (self: super: { 285 + wled = super.wled.overridePythonAttrs (oldAttrs: rec { 286 + version = "0.13.2"; 287 + src = fetchFromGitHub { 288 + owner = "frenck"; 289 + repo = "python-wled"; 290 + rev = "refs/tags/v${version}"; 291 + hash = "sha256-Rv0jaKkN6jQ7oiv1cBYx4HAr7IqPm57jZFykXayp0T0="; 292 + }; 293 + }); 294 + }) 295 + 296 # home-assistant-frontend does not exist in python3.pkgs 297 (self: super: { 298 home-assistant-frontend = self.callPackage ./frontend.nix { }; ··· 332 extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs); 333 334 # Don't forget to run parse-requirements.py after updating 335 + hassVersion = "2022.7.7"; 336 337 in python.pkgs.buildPythonApplication rec { 338 pname = "homeassistant"; ··· 350 owner = "home-assistant"; 351 repo = "core"; 352 rev = version; 353 + hash = "sha256-OU6tPTBC53ogkynH6NrYiQCerPo8Fu0ZLHhNsY0emGs="; 354 }; 355 356 # leave this in, so users don't have to constantly update their downstream patch handling