From 538571f67be6bd60a546859f8bdd2500fdc6de3e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 12 Apr 2026 17:39:30 +0200 Subject: [PATCH] home-assistant-cli: 0.9.6 -> 1.0.0 Changelog: https://github.com/home-assistant-ecosystem/home-assistant-cli/releases/tag/1.0.0 --- pkgs/servers/home-assistant/cli.nix | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/pkgs/servers/home-assistant/cli.nix b/pkgs/servers/home-assistant/cli.nix index c7b1c56ea42c..a332a5e2eb80 100644 --- a/pkgs/servers/home-assistant/cli.nix +++ b/pkgs/servers/home-assistant/cli.nix @@ -6,24 +6,23 @@ installShellFiles, }: -python3.pkgs.buildPythonApplication rec { +python3.pkgs.buildPythonApplication (finalAttrs: { pname = "homeassistant-cli"; - version = "0.9.6"; - format = "setuptools"; + version = "1.0.0"; + pyproject = true; src = fetchFromGitHub { owner = "home-assistant-ecosystem"; repo = "home-assistant-cli"; - rev = version; - hash = "sha256-4OeHJ7icDZUOC5K4L0F0Nd9lbJPgdW4LCU0wniLvJ1Q="; + tag = finalAttrs.version; + hash = "sha256-LF6JXELAP3Mvta3RuDUs4UiQ7ptNFh0vZmPh3ICJFRY="; }; - postPatch = '' - # Ignore pinned versions - sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" setup.py - ''; + pythonRelaxDeps = true; - propagatedBuildInputs = with python3.pkgs; [ + build-system = with python3.pkgs; [ poetry-core ]; + + dependencies = with python3.pkgs; [ aiohttp click click-log @@ -57,8 +56,8 @@ python3.pkgs.buildPythonApplication rec { description = "Command-line tool for Home Assistant"; mainProgram = "hass-cli"; homepage = "https://github.com/home-assistant-ecosystem/home-assistant-cli"; - changelog = "https://github.com/home-assistant-ecosystem/home-assistant-cli/releases/tag/${version}"; + changelog = "https://github.com/home-assistant-ecosystem/home-assistant-cli/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; teams = [ lib.teams.home-assistant ]; }; -} +})