22 buildPythonPackage rec {
23 pname = "home-assistant-intents";
24 version = "2024.11.6";
27 disabled = pythonOlder "3.9";
29 src = fetchFromGitHub {
30 owner = "home-assistant";
31 repo = "intents-package";
32 rev = "refs/tags/${version}";
33 fetchSubmodules = true;
34 hash = "sha256-C2q0mUdA6VGKPHtG2g9Zi0nPvwWP1LAdepJCRkF4ky8=";
40 # build-time codegen; https://github.com/home-assistant/intents/blob/main/requirements.txt#L1-L5
49 # https://github.com/home-assistant/intents-package/blob/main/script/package#L23-L24
50 PACKAGE_DIR=$out/${python.sitePackages}/home_assistant_intents
51 ${python.pythonOnBuildForHost.interpreter} script/merged_output.py $PACKAGE_DIR/data
52 ${python.pythonOnBuildForHost.interpreter} script/write_languages.py $PACKAGE_DIR/data > $PACKAGE_DIR/languages.py
65 changelog = "https://github.com/home-assistant/intents/releases/tag/${version}";
66 description = "Intents to be used with Home Assistant";
67 homepage = "https://github.com/home-assistant/intents";
68 license = licenses.cc-by-40;
69 maintainers = teams.home-assistant.members;