Merge pull request #311375 from azuwis/smartir
home-assistant-custom-components.smartir: replace `disutils` with `packaging`
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
{ lib
|
{
|
||||||
, buildHomeAssistantComponent
|
lib,
|
||||||
, fetchFromGitHub
|
buildHomeAssistantComponent,
|
||||||
, aiofiles
|
fetchFromGitHub,
|
||||||
, broadlink
|
fetchpatch,
|
||||||
|
aiofiles,
|
||||||
|
broadlink,
|
||||||
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildHomeAssistantComponent rec {
|
buildHomeAssistantComponent rec {
|
||||||
@@ -17,6 +20,15 @@ buildHomeAssistantComponent rec {
|
|||||||
hash = "sha256-E6TM761cuaeQzlbjA+oZ+wt5HTJAfkF2J3i4P1Wbuic=";
|
hash = "sha256-E6TM761cuaeQzlbjA+oZ+wt5HTJAfkF2J3i4P1Wbuic=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Replace distutils.version.StrictVersion with packaging.version.Version
|
||||||
|
# https://github.com/smartHomeHub/SmartIR/pull/1250
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/smartHomeHub/SmartIR/commit/1ed8ef23a8f7b9dcae75721eeab8d5f79013b851.patch";
|
||||||
|
hash = "sha256-IhdnTDtUa7mS+Vw/+BqfqWIKK4hbshbVgJNjfKjgAvI=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiofiles
|
aiofiles
|
||||||
broadlink
|
broadlink
|
||||||
@@ -28,6 +40,8 @@ buildHomeAssistantComponent rec {
|
|||||||
cp -r codes $out/custom_components/smartir/
|
cp -r codes $out/custom_components/smartir/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
changelog = "https://github.com/smartHomeHub/SmartIR/releases/tag/v${version}";
|
changelog = "https://github.com/smartHomeHub/SmartIR/releases/tag/v${version}";
|
||||||
description = "Integration for Home Assistant to control climate, TV and fan devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome)";
|
description = "Integration for Home Assistant to control climate, TV and fan devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome)";
|
||||||
|
|||||||
Reference in New Issue
Block a user