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 }:
|
||||
|
||||
let
|
||||
manifest = builtins.toJSON {
|
||||
domain = "color_recognizer";
|
||||
name = "Spotify color recognizer";
|
||||
version = "6e99269";
|
||||
iot_class = "local_polling";
|
||||
};
|
||||
in
|
||||
buildHomeAssistantComponent {
|
||||
owner = "zewelor";
|
||||
domain = "color_recognizer";
|
||||
version = "6e99269";
|
||||
|
||||
# dependencies = [ "spotify" ];
|
||||
dependencies = [
|
||||
python3Packages.numpy
|
||||
python3Packages.scipy
|
||||
python3Packages.voluptuous
|
||||
python3Packages.pillow
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zewelor";
|
||||
|
|
@ -17,22 +29,23 @@ buildHomeAssistantComponent {
|
|||
prePatch = ''
|
||||
mkdir custom_components
|
||||
cp -a color_recognizer/ custom_components/
|
||||
echo '${manifest}' > custom_components/color_recognizer/manifest.json
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
python3Packages.numpy
|
||||
python3Packages.scipy
|
||||
python3Packages.voluptuous
|
||||
python3Packages.pillow
|
||||
];
|
||||
# propagatedBuildInputs = [
|
||||
# python3Packages.numpy
|
||||
# python3Packages.scipy
|
||||
# python3Packages.voluptuous
|
||||
# python3Packages.pillow
|
||||
# ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "PIL" "numpy" "scipy" "voluptuous" ];
|
||||
|
||||
# installPhase = ''
|
||||
# runHook preInstall
|
||||
# cp -a color_recognizer $out
|
||||
# runHook postInstall
|
||||
# '';
|
||||
meta = {
|
||||
description = "Analyzes an image and finds a fitting background color";
|
||||
homepage = "https://github.com/zewelor/ha_custom_components";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue