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 1 + { 2 + lib, 3 + buildHomeAssistantComponent, 4 + fetchFromGitHub, 5 + fetchpatch, 6 + aiofiles, 7 + broadlink, 8 + nix-update-script, 6 9 }: 7 10 8 11 buildHomeAssistantComponent rec { ··· 17 20 hash = "sha256-E6TM761cuaeQzlbjA+oZ+wt5HTJAfkF2J3i4P1Wbuic="; 18 21 }; 19 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 + 20 32 propagatedBuildInputs = [ 21 33 aiofiles 22 34 broadlink ··· 27 39 postInstall = '' 28 40 cp -r codes $out/custom_components/smartir/ 29 41 ''; 42 + 43 + passthru.updateScript = nix-update-script { }; 30 44 31 45 meta = with lib; { 32 46 changelog = "https://github.com/smartHomeHub/SmartIR/releases/tag/v${version}";