diff --git a/pkgs/servers/home-assistant/intents.nix b/pkgs/servers/home-assistant/intents.nix index cf44ab63cb3b..98b12fd38dbb 100644 --- a/pkgs/servers/home-assistant/intents.nix +++ b/pkgs/servers/home-assistant/intents.nix @@ -19,19 +19,37 @@ pytestCheckHook, }: +let + intents = fetchFromGitHub { + owner = "OHF-Voice"; + repo = "intents"; + rev = "4178d174018d408209879c44e98aa150335a1656"; + hash = "sha256-xMH3lZaI4sSvicSMFaGCeYlcr5SrhA8nB/krrN0kyQo="; + }; +in + buildPythonPackage (finalAttrs: { pname = "home-assistant-intents"; - version = "2026.5.5"; + version = "2026.6.1"; pyproject = true; src = fetchFromGitHub { owner = "OHF-Voice"; repo = "intents-package"; - tag = finalAttrs.version; + # https://github.com/OHF-Voice/intents-package/issues/14 + tag = "2026.5.5"; fetchSubmodules = true; hash = "sha256-R6PPZSiDiFvB+lNxyuIHwMIgpQvVI0oqrucnw4jnYNU="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail '2026.5.5' '2026.6.1' + + rm -rf intents + ln -sf ${intents} intents + ''; + build-system = [ setuptools @@ -63,6 +81,7 @@ buildPythonPackage (finalAttrs: { changelog = "https://github.com/OHF-Voice/intents-package/releases/tag/${finalAttrs.src.tag}"; description = "Intents to be used with Home Assistant"; homepage = "https://github.com/OHF-Voice/intents-package"; + # https://github.com/OHF-Voice/intents-package/issues/12 license = lib.licenses.cc-by-40; teams = [ lib.teams.home-assistant ]; };