diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-04-14 03:48:38 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-04-15 01:39:55 +0200 |
commit | 04c0a4b7b639a19348d39071c85eedce9df80737 (patch) | |
tree | 6b98cf7cc7c727d381075af733fbbab547a43bc0 /pkgs/servers/home-assistant/cli.nix | |
parent | 95769fb2c8210c7de17cfe0a4419a337e82c6390 (diff) |
home-assistant-cli: downgrade click to 8.0.4
https://github.com/home-assistant-ecosystem/home-assistant-cli/issues/382
Diffstat (limited to 'pkgs/servers/home-assistant/cli.nix')
-rw-r--r-- | pkgs/servers/home-assistant/cli.nix | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/pkgs/servers/home-assistant/cli.nix b/pkgs/servers/home-assistant/cli.nix index baa418776c5b8..18bc9c76da00a 100644 --- a/pkgs/servers/home-assistant/cli.nix +++ b/pkgs/servers/home-assistant/cli.nix @@ -2,7 +2,21 @@ , python3 }: -python3.pkgs.buildPythonApplication rec { +let + python = python3.override { + packageOverrides = self: super: { + click = super.click.overrideAttrs (oldAttrs: rec { + version = "8.0.4"; + src = oldAttrs.src.override { + inherit version; + sha256 = "sha256-hFjXsSh8X7EoyQ4jOBz5nc3nS+r2x/9jhM6E1v4JCts="; + }; + }); + }; + }; +in + +python.pkgs.buildPythonApplication rec { pname = "homeassistant-cli"; version = "0.9.4"; @@ -16,7 +30,7 @@ python3.pkgs.buildPythonApplication rec { sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" setup.py ''; - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = with python.pkgs; [ aiohttp click click-log @@ -38,7 +52,7 @@ python3.pkgs.buildPythonApplication rec { # $out/bin/hass-cli completion zsh > "$out/share/zsh/site-functions/_hass-cli" #''; - checkInputs = with python3.pkgs; [ + checkInputs = with python.pkgs; [ pytestCheckHook requests-mock ]; |