mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-15 08:58:58 +03:00
Merge pull request #329277 from mweinelt/mass-tests
home-assistant-custom-components.mass: enable tests
This commit is contained in:
commit
047daefcd0
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user