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";