fixup! HASS: custom spotify color recognize component
This commit is contained in:
parent
a81b26946a
commit
e1a8c1c7d3
1 changed files with 13 additions and 6 deletions
|
|
@ -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
|
||||||
'';
|
# '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue