Unverified Commit 13aff78e authored by Martin Weinelt's avatar Martin Weinelt
Browse files

home-assistant: fix build

parent 352d653d
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -4,11 +4,9 @@
  callPackage,
  fetchFromGitHub,
  fetchPypi,
  fetchpatch,
  python313,
  replaceVars,
  ffmpeg-headless,
  ffmpeg_7-headless,
  inetutils,
  nixosTests,
  home-assistant,
@@ -318,14 +316,6 @@ python.pkgs.buildPythonApplication rec {
    (replaceVars ./patches/ffmpeg-path.patch {
      ffmpeg = "${lib.getExe ffmpeg-headless}";
    })

    (fetchpatch {
      # pytest 9 renames some snapshots
      name = "revert-to-pytest-8.patch";
      url = "https://github.com/home-assistant/core/commit/3f22dbaa2e1a7776185ec443bf26f90e90e55efa.patch";
      revert = true;
      hash = "sha256-rHXpmHUNCr+lhYqiOVrCSQTWvWJ+jHNwPJzUeFtDPIw=";
    })
  ];

  postPatch = ''
@@ -465,6 +455,10 @@ python.pkgs.buildPythonApplication rec {
    "tests/test_test_fixtures.py::test_evict_faked_translations"
    "tests/helpers/test_backup.py::test_async_get_manager"
    "tests/helpers/test_trigger.py::test_platform_multiple_triggers[sync_action]"
    # various failing after python-updates
    "tests/helpers/test_entity_platform.py::test_platform_warn_slow_setup" # ValueError: not enough values to unpack (expected 2, got 0)
    "tests/helpers/test_entity_component.py::test_set_scan_interval_via_config" # assert 10 == 30.0
    "tests/helpers/test_entity_component.py::test_set_entity_namespace_via_config" # AssertionError: assert [] == ['test_domain...named_device']
  ];

  preCheck = ''