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