fixup! HASS: custom spotify color recognize component
This commit is contained in:
parent
e1a8c1c7d3
commit
4f4860e347
1 changed files with 26 additions and 13 deletions
|
|
@ -1,11 +1,23 @@
|
||||||
{ fetchFromGitHub, python3Packages, buildHomeAssistantComponent }:
|
{ fetchFromGitHub, python3Packages, buildHomeAssistantComponent }:
|
||||||
|
let
|
||||||
|
manifest = builtins.toJSON {
|
||||||
|
domain = "color_recognizer";
|
||||||
|
name = "Spotify color recognizer";
|
||||||
|
version = "6e99269";
|
||||||
|
iot_class = "local_polling";
|
||||||
|
};
|
||||||
|
in
|
||||||
buildHomeAssistantComponent {
|
buildHomeAssistantComponent {
|
||||||
owner = "zewelor";
|
owner = "zewelor";
|
||||||
domain = "color_recognizer";
|
domain = "color_recognizer";
|
||||||
version = "6e99269";
|
version = "6e99269";
|
||||||
|
|
||||||
# dependencies = [ "spotify" ];
|
dependencies = [
|
||||||
|
python3Packages.numpy
|
||||||
|
python3Packages.scipy
|
||||||
|
python3Packages.voluptuous
|
||||||
|
python3Packages.pillow
|
||||||
|
];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "zewelor";
|
owner = "zewelor";
|
||||||
|
|
@ -17,22 +29,23 @@ buildHomeAssistantComponent {
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
mkdir custom_components
|
mkdir custom_components
|
||||||
cp -a color_recognizer/ custom_components/
|
cp -a color_recognizer/ custom_components/
|
||||||
|
echo '${manifest}' > custom_components/color_recognizer/manifest.json
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
# propagatedBuildInputs = [
|
||||||
python3Packages.numpy
|
# python3Packages.numpy
|
||||||
python3Packages.scipy
|
# python3Packages.scipy
|
||||||
python3Packages.voluptuous
|
# python3Packages.voluptuous
|
||||||
python3Packages.pillow
|
# python3Packages.pillow
|
||||||
];
|
# ];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [ "PIL" "numpy" "scipy" "voluptuous" ];
|
pythonImportsCheck = [ "PIL" "numpy" "scipy" "voluptuous" ];
|
||||||
|
|
||||||
# installPhase = ''
|
meta = {
|
||||||
# runHook preInstall
|
description = "Analyzes an image and finds a fitting background color";
|
||||||
# cp -a color_recognizer $out
|
homepage = "https://github.com/zewelor/ha_custom_components";
|
||||||
# runHook postInstall
|
};
|
||||||
# '';
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue