Unverified Commit 047daefc authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #329277 from mweinelt/mass-tests

home-assistant-custom-components.mass: enable tests
parents f10e6083 5b2975fb
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -4,6 +4,9 @@
, toPythonModule
, async-timeout
, music-assistant
, pytestCheckHook
, pytest-asyncio
, pytest-homeassistant-custom-component
}:

buildHomeAssistantComponent rec {
@@ -18,6 +21,10 @@ buildHomeAssistantComponent rec {
    hash = "sha256-Wvc+vUYkUJmS4U34Sh/sDCVXmQA0AtEqIT8MNXd++3M=";
  };

  postPatch = ''
    sed -i "s/--cov//" pyproject.toml
  '';

  dependencies = [
    async-timeout
    (toPythonModule music-assistant)
@@ -25,6 +32,12 @@ buildHomeAssistantComponent rec {

  dontCheckManifest = true; # expects music-assistant 2.0.6, we have 2.0.7

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
    pytest-homeassistant-custom-component
  ];

  meta = with lib; {
    description = "Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players";
    homepage = "https://github.com/music-assistant/hass-music-assistant";