Merge pull request #266703 from NixOS/home-assistant

home-assistant: 2023.11.1 -> 2023.11.2

authored by

Martin Weinelt and committed by
GitHub
a27b0a66 f9370279

+53 -44
+2 -2
pkgs/development/python-modules/aioesphomeapi/default.nix
··· 22 22 23 23 buildPythonPackage rec { 24 24 pname = "aioesphomeapi"; 25 - version = "18.2.1"; 25 + version = "18.2.4"; 26 26 pyproject = true; 27 27 28 28 disabled = pythonOlder "3.9"; ··· 31 31 owner = "esphome"; 32 32 repo = pname; 33 33 rev = "refs/tags/v${version}"; 34 - hash = "sha256-PW3/V4PTm+UxTsfSSvOEX+FGcuF4m+mDOz6Z/AzB2qk="; 34 + hash = "sha256-m82UfhcmAFBDfSVmia6nhBB2qyQjSZJbXtzD/sGeqk4="; 35 35 }; 36 36 37 37 nativeBuildInputs = [
+2 -2
pkgs/development/python-modules/bluetooth-data-tools/default.nix
··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "bluetooth-data-tools"; 14 - version = "1.13.0"; 14 + version = "1.14.0"; 15 15 format = "pyproject"; 16 16 17 17 disabled = pythonOlder "3.9"; ··· 20 20 owner = "Bluetooth-Devices"; 21 21 repo = pname; 22 22 rev = "refs/tags/v${version}"; 23 - hash = "sha256-qvr4CYOMgyTEFONpe6KA176H56+w6RHThAyUthIzszE="; 23 + hash = "sha256-eO17EuZ9K6tLAyEGmTaxw1Cxfz3XPPwNCcIwZ2/uHug="; 24 24 }; 25 25 26 26 # The project can build both an optimized cython version and an unoptimized
+2 -2
pkgs/development/python-modules/home-assistant-bluetooth/default.nix
··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "home-assistant-bluetooth"; 14 - version = "1.10.3"; 14 + version = "1.10.4"; 15 15 format = "pyproject"; 16 16 17 17 disabled = pythonOlder "3.9"; ··· 20 20 owner = "home-assistant-libs"; 21 21 repo = pname; 22 22 rev = "refs/tags/v${version}"; 23 - hash = "sha256-77RrqmoCftPc48fFtuuFo0KqGX3n+6aDx2RFkwGCNzQ="; 23 + hash = "sha256-7gkesxQI6QBxyQpHlSSh1w6MDeid0dSdXn+jnxvafD0="; 24 24 }; 25 25 26 26 postPatch = ''
+2 -2
pkgs/development/python-modules/pyatmo/default.nix
··· 16 16 17 17 buildPythonPackage rec { 18 18 pname = "pyatmo"; 19 - version = "7.5.0"; 19 + version = "7.6.0"; 20 20 format = "pyproject"; 21 21 22 22 disabled = pythonOlder "3.8"; ··· 25 25 owner = "jabesq"; 26 26 repo = "pyatmo"; 27 27 rev = "refs/tags/v${version}"; 28 - hash = "sha256-GucatimZTg0Fggrz4bG1x6YSa3wE/uLGB4ufil/km3w="; 28 + hash = "sha256-rAmSxayXljOJchiMtSOgnotzQmapK2n86HwNi9HJX68="; 29 29 }; 30 30 31 31 SETUPTOOLS_SCM_PRETEND_VERSION = version;
+8 -6
pkgs/development/python-modules/tailscale/default.nix
··· 3 3 , aresponses 4 4 , buildPythonPackage 5 5 , fetchFromGitHub 6 + , mashumaro 7 + , orjson 6 8 , poetry-core 7 - , pydantic 8 9 , pytest-asyncio 9 10 , pytestCheckHook 10 11 , pythonOlder ··· 13 14 14 15 buildPythonPackage rec { 15 16 pname = "tailscale"; 16 - version = "0.3.0"; 17 + version = "0.6.0"; 17 18 format = "pyproject"; 18 19 19 - disabled = pythonOlder "3.8"; 20 + disabled = pythonOlder "3.11"; 20 21 21 22 src = fetchFromGitHub { 22 23 owner = "frenck"; 23 24 repo = "python-tailscale"; 24 25 rev = "refs/tags/v${version}"; 25 - hash = "sha256-gGDsVGsCBZi/pxD0cyH3+xrvHVBC+wJCcl/NGqsTqiE="; 26 + hash = "sha256-wO6yMMU5fxk8GQ0e4ZCse2atlR4wrzulZOFXkVKAsmU="; 26 27 }; 27 28 28 29 postPatch = '' 29 30 # Upstream doesn't set a version for the pyproject.toml 30 31 substituteInPlace pyproject.toml \ 31 - --replace "0.0.0" "${version}" \ 32 + --replace 'version = "0.0.0"' 'version = "${version}"' \ 32 33 --replace "--cov" "" 33 34 ''; 34 35 ··· 38 39 39 40 propagatedBuildInputs = [ 40 41 aiohttp 41 - pydantic 42 + mashumaro 43 + orjson 42 44 yarl 43 45 ]; 44 46
+2 -2
pkgs/development/python-modules/ulid-transform/default.nix
··· 10 10 11 11 buildPythonPackage rec { 12 12 pname = "ulid-transform"; 13 - version = "0.8.1"; 13 + version = "0.9.0"; 14 14 format = "pyproject"; 15 15 16 16 disabled = pythonOlder "3.9"; ··· 19 19 owner = "bdraco"; 20 20 repo = pname; 21 21 rev = "refs/tags/v${version}"; 22 - hash = "sha256-isngr9CZ2YYuq+5s3p4HXrTU20vPqZGZ1r8mBoVkxiI="; 22 + hash = "sha256-r9uxPXpmQSsL1rX4d9TH87olFbZugdGdNG++Ygjie1I="; 23 23 }; 24 24 25 25 nativeBuildInputs = [
+2 -1
pkgs/servers/home-assistant/component-packages.nix
··· 2 2 # Do not edit! 3 3 4 4 { 5 - version = "2023.11.1"; 5 + version = "2023.11.2"; 6 6 components = { 7 7 "3_day_blinds" = ps: with ps; [ 8 8 ]; 9 9 "abode" = ps: with ps; [ 10 10 jaraco-abode 11 + jaraco-functools 11 12 ]; 12 13 "accuweather" = ps: with ps; [ 13 14 accuweather
+14 -22
pkgs/servers/home-assistant/default.nix
··· 3 3 , callPackage 4 4 , fetchFromGitHub 5 5 , fetchPypi 6 - , fetchpatch 7 6 , python311 8 7 , substituteAll 9 8 , ffmpeg-headless ··· 183 182 }; 184 183 }); 185 184 185 + psutil = super.psutil.overridePythonAttrs (oldAttrs: rec { 186 + version = "5.9.6"; 187 + src = fetchPypi { 188 + pname = "psutil"; 189 + inherit version; 190 + hash = "sha256-5Lkt3NfdTN0/kAGA6h4QSTLHvOI0+4iXbio7KWRBIlo="; 191 + }; 192 + }); 193 + 186 194 py-synologydsm-api = super.py-synologydsm-api.overridePythonAttrs (oldAttrs: rec { 187 195 version = "2.1.4"; 188 196 src = fetchFromGitHub { ··· 300 308 doCheck = false; 301 309 }); 302 310 303 - # Pinned due to API changes in 0.3.0 304 - tailscale = super.tailscale.overridePythonAttrs (oldAttrs: rec { 305 - version = "0.2.0"; 306 - src = fetchFromGitHub { 307 - owner = "frenck"; 308 - repo = "python-tailscale"; 309 - rev = "refs/tags/v${version}"; 310 - hash = "sha256-/tS9ZMUWsj42n3MYPZJYJELzX3h02AIHeRZmD2SuwWE="; 311 - }; 312 - }); 313 - 314 311 # Pinned due to API changes ~1.0 315 312 vultr = super.vultr.overridePythonAttrs (oldAttrs: rec { 316 313 version = "0.1.2"; ··· 356 353 extraBuildInputs = extraPackages python.pkgs; 357 354 358 355 # Don't forget to run parse-requirements.py after updating 359 - hassVersion = "2023.11.1"; 356 + hassVersion = "2023.11.2"; 360 357 361 358 in python.pkgs.buildPythonApplication rec { 362 359 pname = "homeassistant"; ··· 372 369 # Primary source is the pypi sdist, because it contains translations 373 370 src = fetchPypi { 374 371 inherit pname version; 375 - hash = "sha256-4OIvY6blun++7JDY+B0Cjrr4yNgnjTd8G55SWkhS3Cs="; 372 + hash = "sha256-cnneRq0hIyvgKo0du/52ze0IVs8TgTPNQM3T1kyy03s="; 376 373 }; 377 374 378 375 # Secondary source is git for tests ··· 380 377 owner = "home-assistant"; 381 378 repo = "core"; 382 379 rev = "refs/tags/${version}"; 383 - hash = "sha256-Z/CV1sGdJsdc4OxUZulC0boHaMP7WpajbY8Y6R9Q//I="; 380 + hash = "sha256-OljfYmlXSJVoWWsd4jcSF4nI/FXHqRA8e4LN5AaPVv8="; 384 381 }; 385 382 386 383 nativeBuildInputs = with python.pkgs; [ ··· 399 396 (substituteAll { 400 397 src = ./patches/ffmpeg-path.patch; 401 398 ffmpeg = "${lib.getBin ffmpeg-headless}/bin/ffmpeg"; 402 - }) 403 - (fetchpatch { 404 - # freeze time in litterrobot tests 405 - # https://github.com/home-assistant/core/pull/103444 406 - name = "home-assistant-litterrobot-freeze-test-time.patch"; 407 - url = "https://github.com/home-assistant/core/commit/806205952ff863e2cf1875be406ea0254be5f13a.patch"; 408 - hash = "sha256-OVbmJWy275nYWrif9awAGIYlgZqrRPcYBhB0Vil8rmk="; 409 399 }) 410 400 ]; 411 401 ··· 526 516 "--deselect=tests/helpers/test_entity_registry.py::test_get_or_create_updates_data" 527 517 # AssertionError: assert 2 == 1 528 518 "--deselect=tests/helpers/test_entity_values.py::test_override_single_value" 519 + # AssertionError: assert 'WARNING' not in '2023-11-10 ...nt abc[L]>\n'" 520 + "--deselect=tests/helpers/test_script.py::test_multiple_runs_repeat_choose" 529 521 # tests are located in tests/ 530 522 "tests" 531 523 ];
+2 -2
pkgs/servers/home-assistant/frontend.nix
··· 4 4 # the frontend version corresponding to a specific home-assistant version can be found here 5 5 # https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json 6 6 pname = "home-assistant-frontend"; 7 - version = "20231030.1"; 7 + version = "20231030.2"; 8 8 format = "wheel"; 9 9 10 10 src = fetchPypi { ··· 12 12 pname = "home_assistant_frontend"; 13 13 dist = "py3"; 14 14 python = "py3"; 15 - hash = "sha256-S363j7HnOxLqCBaml1Kb9xfY0AaqBIgj09NutByn6Xo="; 15 + hash = "sha256-qzodzqWpAXZjwBJkiCyBi5zzfpEqqtauJn2PKZ5UtJ0="; 16 16 }; 17 17 18 18 # there is nothing to strip in this package
+15 -1
pkgs/servers/home-assistant/parse-requirements.py
··· 56 56 ], 57 57 } 58 58 59 + # Sometimes we have unstable versions for libraries that are not 60 + # well-maintained. This allows us to mark our weird version as newer 61 + # than a certain wanted version 62 + OUR_VERSION_IS_NEWER_THAN = { 63 + "blinkstick": "1.2.0", 64 + "gps3": "0.33.3", 65 + "pybluez": "0.22", 66 + } 67 + 59 68 60 69 61 70 def run_sync(cmd: List[str]) -> None: ··· 226 235 Version.parse(our_version) 227 236 except InvalidVersion: 228 237 print(f"Attribute {attr_name} has invalid version specifier {our_version}", file=sys.stderr) 229 - attr_outdated = True 238 + 239 + # allow specifying that our unstable version is newer than some version 240 + if newer_than_version := OUR_VERSION_IS_NEWER_THAN.get(attr_name): 241 + attr_outdated = Version.parse(newer_than_version) < Version.parse(required_version) 242 + else: 243 + attr_outdated = True 230 244 else: 231 245 attr_outdated = Version.parse(our_version) < Version.parse(required_version) 232 246 finally:
+2 -2
pkgs/servers/home-assistant/stubs.nix
··· 8 8 9 9 buildPythonPackage rec { 10 10 pname = "homeassistant-stubs"; 11 - version = "2023.11.1"; 11 + version = "2023.11.2"; 12 12 format = "pyproject"; 13 13 14 14 disabled = python.version != home-assistant.python.version; ··· 17 17 owner = "KapJI"; 18 18 repo = "homeassistant-stubs"; 19 19 rev = "refs/tags/${version}"; 20 - hash = "sha256-eLmWOMKLzhZ7M/gdUHhlDZ3T+N4h5aHxMwOI8ZUepps="; 20 + hash = "sha256-stVfFXb5QfC+wZUSk53+jt/hb8kO1gCcgeOnHHpNlWE="; 21 21 }; 22 22 23 23 nativeBuildInputs = [