diff --git a/pkgs/servers/home-assistant/custom-components/oref_alert/package.nix b/pkgs/servers/home-assistant/custom-components/oref_alert/package.nix index 909e5c4e1129..2f8c25590ee9 100644 --- a/pkgs/servers/home-assistant/custom-components/oref_alert/package.nix +++ b/pkgs/servers/home-assistant/custom-components/oref_alert/package.nix @@ -8,20 +8,28 @@ pytestCheckHook, pytest-homeassistant-custom-component, pytest-freezer, + pytest-cov-stub, + home-assistant-frontend, }: buildHomeAssistantComponent rec { owner = "amitfin"; domain = "oref_alert"; - version = "4.1.1"; + version = "6.14.0"; src = fetchFromGitHub { owner = "amitfin"; repo = "oref_alert"; tag = "v${version}"; - hash = "sha256-nWp8cG0lFYUEO11lcZGkqx5QvOSfSVnqIqpHA8YAN30="; + hash = "sha256-g3Ae2AwdhcBv9v3aFjFAqxCPYVBFtQxsbtVAEOL2A60="; }; + # Do not publish cards, currently broken, attempting to write to nix store. + postPatch = '' + substituteInPlace custom_components/oref_alert/__init__.py \ + --replace-fail 'version = await publish_cards(hass)' 'version = "1.0.0"' + ''; + dependencies = [ aiofiles shapely @@ -30,10 +38,18 @@ buildHomeAssistantComponent rec { ignoreVersionRequirement = [ "shapely" ]; + # These tests are broken with cards removed. + disabledTestPaths = [ + "tests/test_custom_cards.py" + "tests/test_init.py" + ]; + nativeCheckInputs = [ pytestCheckHook pytest-homeassistant-custom-component pytest-freezer + pytest-cov-stub + home-assistant-frontend ]; meta = {