diff --git a/flake.nix b/flake.nix index 47b3510..a889ee4 100644 --- a/flake.nix +++ b/flake.nix @@ -239,7 +239,6 @@ wl-clipedit = self.callPackage ./pkgs/wl-clipedit { }; wl-lockscreen = self.callPackage ./pkgs/wl-lockscreen { }; wl-update-background = self.callPackage ./pkgs/wl-update-background { }; - hass-color-recognizer = self.callPackage ./pkgs/hass-color-recognizer { }; }; overrides = _self: super: { diff --git a/instances/heimdall/configuration.nix b/instances/heimdall/configuration.nix index d88ef9a..9d63bb8 100644 --- a/instances/heimdall/configuration.nix +++ b/instances/heimdall/configuration.nix @@ -323,9 +323,6 @@ in configDir = "/var/lib/hass"; configWritable = true; extraPackages = ps: with ps; [ securetar ]; - customComponents = [ - pkgs.hass-color-recognizer - ]; extraComponents = [ "default_config" @@ -345,6 +342,7 @@ in "caldav" "calendar" "citybikes" + "color_extractor" "configurator" # "coronavirus" "cover" diff --git a/pkgs/hass-color-recognizer/default.nix b/pkgs/hass-color-recognizer/default.nix deleted file mode 100644 index 94973af..0000000 --- a/pkgs/hass-color-recognizer/default.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ 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 = [ - python3Packages.numpy - python3Packages.scipy - python3Packages.voluptuous - python3Packages.pillow - ]; - - src = fetchFromGitHub { - owner = "zewelor"; - repo = "ha_custom_components"; - rev = "6e99269"; - sha256 = "sha256-0Qgtt5gMOUZQphUkI6uYiZ/A8xsXP1eMrVlC+EmjXj8="; - }; - - 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 - # ]; - - doCheck = false; - - pythonImportsCheck = [ "PIL" "numpy" "scipy" "voluptuous" ]; - - meta = { - description = "Analyzes an image and finds a fitting background color"; - homepage = "https://github.com/zewelor/ha_custom_components"; - }; - -}