{ lib, buildHomeAssistantComponent, fetchFromGitHub, pillow, fnv-hash-fast, psutil-home-assistant, sqlalchemy, }: buildHomeAssistantComponent rec { owner = "frenck"; domain = "spook"; version = "4.0.1"; src = fetchFromGitHub { inherit owner; repo = domain; tag = "v${version}"; hash = "sha256-0IihrhATgraGmuMRnrbGTUrtlXAR+CooENSIKSWIknY="; }; patches = [ ./remove-sub-integration-symlink-hack.patch ]; postPatch = '' substituteInPlace custom_components/spook/manifest.json \ --replace-fail '"version": "0.0.0"' '"version": "${version}"' ''; dependencies = [ pillow fnv-hash-fast psutil-home-assistant sqlalchemy ]; meta = { changelog = "https://github.com/frenck/spook/releases/tag/v${version}"; description = "Toolbox for Home Assistant"; homepage = "https://spook.boo/"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ kkoniuszy ]; }; }