From bce4963de448c4a02401a565e98cf7af7b22eb3d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 12 Dec 2024 02:22:47 +0100 Subject: [PATCH] home-assistant-custom-components: migrate to ignoreVersionRequirement --- .../custom-components/bodymiscale/package.nix | 8 ++++---- .../custom-components/emporia_vue/package.nix | 6 +++--- .../philips_airpurifier_coap/package.nix | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pkgs/servers/home-assistant/custom-components/bodymiscale/package.nix b/pkgs/servers/home-assistant/custom-components/bodymiscale/package.nix index cd73b339d2d3..ba19b714ae4c 100644 --- a/pkgs/servers/home-assistant/custom-components/bodymiscale/package.nix +++ b/pkgs/servers/home-assistant/custom-components/bodymiscale/package.nix @@ -18,14 +18,14 @@ buildHomeAssistantComponent rec { hash = "sha256-6bYKqU9yucISjTrmCUx1bNn9kqvT9jW1OBrqAa4ayEQ="; }; - postPatch = '' - substituteInPlace custom_components/bodymiscale/manifest.json --replace-fail 'cachetools==5.3.0' 'cachetools>=5.3.0' - ''; - dependencies = [ cachetools ]; + ignoreVersionRequirement = [ + "cachetools" + ]; + meta = { description = "Home Assistant custom component providing body metrics for Xiaomi Mi Scale 1 and 2"; homepage = "https://github.com/dckiller51/bodymiscale"; diff --git a/pkgs/servers/home-assistant/custom-components/emporia_vue/package.nix b/pkgs/servers/home-assistant/custom-components/emporia_vue/package.nix index 0ec3e44e70ad..79f421d43ac1 100644 --- a/pkgs/servers/home-assistant/custom-components/emporia_vue/package.nix +++ b/pkgs/servers/home-assistant/custom-components/emporia_vue/package.nix @@ -21,9 +21,9 @@ buildHomeAssistantComponent rec { pyemvue ]; - postPatch = '' - substituteInPlace custom_components/emporia_vue/manifest.json --replace-fail 'pyemvue==0.17.1' 'pyemvue>=0.17.1' - ''; + ignoreVersionRequirement = [ + "pyemvue" + ]; dontBuild = true; diff --git a/pkgs/servers/home-assistant/custom-components/philips_airpurifier_coap/package.nix b/pkgs/servers/home-assistant/custom-components/philips_airpurifier_coap/package.nix index 8681adeccc3e..f2cb6dd23e29 100644 --- a/pkgs/servers/home-assistant/custom-components/philips_airpurifier_coap/package.nix +++ b/pkgs/servers/home-assistant/custom-components/philips_airpurifier_coap/package.nix @@ -19,15 +19,15 @@ buildHomeAssistantComponent rec { hash = "sha256-yoaph/R3c4j+sXEC02Hv+ixtuif70/y6Gag5NBpKFLs="; }; - postPatch = '' - substituteInPlace custom_components/philips_airpurifier_coap/manifest.json --replace-fail 'getmac==0.9.4' 'getmac>=0.9.4' - ''; - dependencies = [ aioairctrl getmac ]; + ignoreVersionRequirement = [ + "getmac" + ]; + meta = { description = "Philips AirPurifier custom component for Home Assistant"; homepage = "https://github.com/kongo09/philips-airpurifier-coap";