Merge pull request #194002 from fabaff/homeassistant-cli-bump

home-assistant-cli: 0.9.4 -> 0.9.5

authored by

Jörg Thalheim and committed by
GitHub
8be0bb7e c63f54e5

+19 -23
+19 -23
pkgs/servers/home-assistant/cli.nix
··· 1 1 { lib 2 + , fetchFromGitHub 2 3 , python3 3 4 }: 4 5 5 - let 6 - python = python3.override { 7 - packageOverrides = self: super: { 8 - click = super.click.overrideAttrs (oldAttrs: rec { 9 - version = "8.0.4"; 10 - src = oldAttrs.src.override { 11 - inherit version; 12 - sha256 = "sha256-hFjXsSh8X7EoyQ4jOBz5nc3nS+r2x/9jhM6E1v4JCts="; 13 - }; 14 - }); 15 - }; 16 - }; 17 - in 18 - 19 - python.pkgs.buildPythonApplication rec { 6 + python3.pkgs.buildPythonApplication rec { 20 7 pname = "homeassistant-cli"; 21 - version = "0.9.4"; 8 + version = "0.9.5"; 9 + format = "setuptools"; 22 10 23 - src = python3.pkgs.fetchPypi { 24 - inherit pname version; 25 - sha256 = "03kiyqpp3zf8rg30d12h4fapihh0rqwpv5p8jfxb3iq0chfmjx2f"; 11 + src = fetchFromGitHub { 12 + owner = "home-assistant-ecosystem"; 13 + repo = "home-assistant-cli"; 14 + rev = version; 15 + hash = "sha256-gtyW5FnpzUv/3TuBZ0LJXPxeQAkl7bf8M+K6RNATVm0="; 26 16 }; 27 17 28 18 postPatch = '' ··· 30 20 sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" setup.py 31 21 ''; 32 22 33 - propagatedBuildInputs = with python.pkgs; [ 23 + propagatedBuildInputs = with python3.pkgs; [ 34 24 aiohttp 35 25 click 36 26 click-log ··· 44 34 tabulate 45 35 ]; 46 36 47 - # Completion needs to be ported to work with click > 8.0 48 - # https://github.com/home-assistant-ecosystem/home-assistant-cli/issues/367 37 + # TODO: Completion needs to be adapted after support for latest click was added 38 + # $ source <(_HASS_CLI_COMPLETE=bash_source hass-cli) # for bash 39 + # $ source <(_HASS_CLI_COMPLETE=zsh_source hass-cli) # for zsh 40 + # $ eval (_HASS_CLI_COMPLETE=fish_source hass-cli) # for fish 49 41 #postInstall = '' 50 42 # mkdir -p "$out/share/bash-completion/completions" "$out/share/zsh/site-functions" 51 43 # $out/bin/hass-cli completion bash > "$out/share/bash-completion/completions/hass-cli" 52 44 # $out/bin/hass-cli completion zsh > "$out/share/zsh/site-functions/_hass-cli" 53 45 #''; 54 46 55 - checkInputs = with python.pkgs; [ 47 + checkInputs = with python3.pkgs; [ 56 48 pytestCheckHook 57 49 requests-mock 50 + ]; 51 + 52 + pythonImportsCheck = [ 53 + "homeassistant_cli" 58 54 ]; 59 55 60 56 meta = with lib; {