31 lines
693 B
Nix
31 lines
693 B
Nix
{ 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
|
|
python3Packages.pillow
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "PIL" "numpy" "scipy" "voluptuous" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
cp -a color_recognizer $out
|
|
runHook postInstall
|
|
'';
|
|
}
|