diff options
Diffstat (limited to 'pkgs/servers/home-assistant/cli.nix')
-rw-r--r-- | pkgs/servers/home-assistant/cli.nix | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/pkgs/servers/home-assistant/cli.nix b/pkgs/servers/home-assistant/cli.nix index 90e4b0c736d5..baed66bb4bdb 100644 --- a/pkgs/servers/home-assistant/cli.nix +++ b/pkgs/servers/home-assistant/cli.nix @@ -1,13 +1,12 @@ -# dateparser tests fail on pyton37: https://github.com/NixOS/nixpkgs/issues/52766 -{ lib, python36, glibcLocales }: +{ lib, python3, glibcLocales }: -python36.pkgs.buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "homeassistant-cli"; - version = "0.4.4"; + version = "0.5.0"; - src = python36.pkgs.fetchPypi { + src = python3.pkgs.fetchPypi { inherit pname version; - sha256 = "ad3722062ffb7b4fa730f61991b831dbf083e4e079c560993a023ce4bb11c55d"; + sha256 = "4ad137d336508ab74840a34b3cc488ad884cc75285f5d7842544df1c3adacf8d"; }; postPatch = '' @@ -19,8 +18,8 @@ python36.pkgs.buildPythonApplication rec { glibcLocales ]; - propagatedBuildInputs = with python36.pkgs; [ - requests pyyaml netdisco click click-log tabulate idna jsonpath_rw jinja2 dateparser + propagatedBuildInputs = with python3.pkgs; [ + requests netdisco click click-log tabulate jsonpath_rw jinja2 dateparser regex ruamel_yaml aiohttp ]; LC_ALL = "en_US.UTF-8"; @@ -31,7 +30,7 @@ python36.pkgs.buildPythonApplication rec { $out/bin/hass-cli completion zsh > "$out/share/zsh/site-functions/_hass-cli" ''; - checkInputs = with python36.pkgs; [ + checkInputs = with python3.pkgs; [ pytest requests-mock ]; |