Merge pull request #311375 from azuwis/smartir

home-assistant-custom-components.smartir: replace `disutils` with `packaging`

authored by Martin Weinelt and committed by GitHub 9d62e426 c8026692

+19 -5
+19 -5
pkgs/servers/home-assistant/custom-components/smartir/default.nix
··· 1 - { lib 2 - , buildHomeAssistantComponent 3 - , fetchFromGitHub 4 - , aiofiles 5 - , broadlink 6 }: 7 8 buildHomeAssistantComponent rec { ··· 17 hash = "sha256-E6TM761cuaeQzlbjA+oZ+wt5HTJAfkF2J3i4P1Wbuic="; 18 }; 19 20 propagatedBuildInputs = [ 21 aiofiles 22 broadlink ··· 27 postInstall = '' 28 cp -r codes $out/custom_components/smartir/ 29 ''; 30 31 meta = with lib; { 32 changelog = "https://github.com/smartHomeHub/SmartIR/releases/tag/v${version}";
··· 1 + { 2 + lib, 3 + buildHomeAssistantComponent, 4 + fetchFromGitHub, 5 + fetchpatch, 6 + aiofiles, 7 + broadlink, 8 + nix-update-script, 9 }: 10 11 buildHomeAssistantComponent rec { ··· 20 hash = "sha256-E6TM761cuaeQzlbjA+oZ+wt5HTJAfkF2J3i4P1Wbuic="; 21 }; 22 23 + patches = [ 24 + # Replace distutils.version.StrictVersion with packaging.version.Version 25 + # https://github.com/smartHomeHub/SmartIR/pull/1250 26 + (fetchpatch { 27 + url = "https://github.com/smartHomeHub/SmartIR/commit/1ed8ef23a8f7b9dcae75721eeab8d5f79013b851.patch"; 28 + hash = "sha256-IhdnTDtUa7mS+Vw/+BqfqWIKK4hbshbVgJNjfKjgAvI="; 29 + }) 30 + ]; 31 + 32 propagatedBuildInputs = [ 33 aiofiles 34 broadlink ··· 39 postInstall = '' 40 cp -r codes $out/custom_components/smartir/ 41 ''; 42 + 43 + passthru.updateScript = nix-update-script { }; 44 45 meta = with lib; { 46 changelog = "https://github.com/smartHomeHub/SmartIR/releases/tag/v${version}";