Merge pull request #329277 from mweinelt/mass-tests

home-assistant-custom-components.mass: enable tests
This commit is contained in:
Martin Weinelt 2024-08-03 03:55:34 +02:00 committed by GitHub
commit 047daefcd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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";