about summary refs log tree commit diff
path: root/pkgs/servers/home-assistant/cli.nix
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-01-29 23:31:10 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-01-29 23:57:12 +0100
commitcfd556fd4a5baf6bc552cec783843a00ba30f309 (patch)
tree74f6b84d5ed9102c134a7277d51af04919ccc79e /pkgs/servers/home-assistant/cli.nix
parent74d1850c0e70404ed697397051fb8865fa002ff8 (diff)
home-assistant-cli: 0.3.0 -> 0.4.2
Diffstat (limited to 'pkgs/servers/home-assistant/cli.nix')
-rw-r--r--pkgs/servers/home-assistant/cli.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/servers/home-assistant/cli.nix b/pkgs/servers/home-assistant/cli.nix
index c889610963d6d..19be26efb10a8 100644
--- a/pkgs/servers/home-assistant/cli.nix
+++ b/pkgs/servers/home-assistant/cli.nix
@@ -1,29 +1,29 @@
-{ lib, python3 }:
+{ lib, python3, glibcLocales }:
 
 python3.pkgs.buildPythonApplication rec {
   pname = "homeassistant-cli";
-  version = "0.3.0";
+  version = "0.4.2";
 
   src = python3.pkgs.fetchPypi {
     inherit pname version;
-    sha256 = "42d7cb008801d7a448b62aed1fc46dd450ee67397bf16faabb02f691417db4b2";
+    sha256 = "e0b05af9e49baf88a44f1b36c3446a106223016dceefd5f9910e204af5901f44";
   };
 
   postPatch = ''
     # Ignore pinned versions
-    sed -i "s/'\(.*\)==.*'/'\1'/g" setup.py
+    sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" setup.py
   '';
 
   propagatedBuildInputs = with python3.pkgs; [
-    requests pyyaml netdisco click click-log tabulate idna jsonpath_rw jinja2
+    requests pyyaml netdisco click click-log tabulate idna jsonpath_rw jinja2 dateparser
   ];
 
   checkInputs = with python3.pkgs; [
-    pytest requests-mock
+    pytest requests-mock glibcLocales
   ];
 
   checkPhase = ''
-    pytest
+    LC_ALL=en_US.UTF-8 pytest
   '';
 
   meta = with lib; {