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 {
|
||||
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
|
||||
# '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue