HASS: custom spotify color recognize component

This commit is contained in:
Filippo Berto 2025-03-02 14:56:03 +01:00
parent 9d0f9260fe
commit 67bb827098
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
3 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ fetchFromGitHub, python3Packages, buildHomeAssistantComponent }:
buildHomeAssistantComponent {
owner = "zewelor";
domain = "hass-color-recognizer";
version = "6e99269";
src = fetchFromGitHub {
owner = "zewelor";
repo = "ha_custom_components";
rev = "6e99269";
sha256 = "sha256-0Qgtt5gMOUZQphUkI6uYiZ/A8xsXP1eMrVlC+EmjXj8=";
};
propagatedBuildInputs = [
python3Packages.numpy
python3Packages.scipy
python3Packages.voluptuous
];
doCheck = false;
pythonImportsCheck = [ "numpy" "scipy" "voluptuous" ];
installPhase = ''
runHook preInstall
cp -a color_recognizer $out
runHook postInstall
'';
}