fixup! HASS: custom spotify color recognize component

This commit is contained in:
Filippo Berto 2025-03-02 15:29:36 +01:00
parent a81b26946a
commit e1a8c1c7d3
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -2,9 +2,11 @@
buildHomeAssistantComponent { buildHomeAssistantComponent {
owner = "zewelor"; owner = "zewelor";
domain = "hass-color-recognizer"; domain = "color_recognizer";
version = "6e99269"; version = "6e99269";
# dependencies = [ "spotify" ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "zewelor"; owner = "zewelor";
repo = "ha_custom_components"; repo = "ha_custom_components";
@ -12,6 +14,11 @@ buildHomeAssistantComponent {
sha256 = "sha256-0Qgtt5gMOUZQphUkI6uYiZ/A8xsXP1eMrVlC+EmjXj8="; sha256 = "sha256-0Qgtt5gMOUZQphUkI6uYiZ/A8xsXP1eMrVlC+EmjXj8=";
}; };
prePatch = ''
mkdir custom_components
cp -a color_recognizer/ custom_components/
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
python3Packages.numpy python3Packages.numpy
python3Packages.scipy python3Packages.scipy
@ -23,9 +30,9 @@ buildHomeAssistantComponent {
pythonImportsCheck = [ "PIL" "numpy" "scipy" "voluptuous" ]; pythonImportsCheck = [ "PIL" "numpy" "scipy" "voluptuous" ];
installPhase = '' # installPhase = ''
runHook preInstall # runHook preInstall
cp -a color_recognizer $out # cp -a color_recognizer $out
runHook postInstall # runHook postInstall
''; # '';
} }