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:40:11 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-01-29 23:57:18 +0100
commitc3b01eed801ff4eb74a8c2637866d16ee26db2c7 (patch)
treead3edab1bacc0326090e17fac15adc5dea5d653f /pkgs/servers/home-assistant/cli.nix
parentcfd556fd4a5baf6bc552cec783843a00ba30f309 (diff)
home-assistant-cli: use python36
dateparser tests fail on python36: https://github.com/NixOS/nixpkgs/issues/52766
Diffstat (limited to 'pkgs/servers/home-assistant/cli.nix')
-rw-r--r--pkgs/servers/home-assistant/cli.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/servers/home-assistant/cli.nix b/pkgs/servers/home-assistant/cli.nix
index 19be26efb10a8..c1b6c9ceb9ccc 100644
--- a/pkgs/servers/home-assistant/cli.nix
+++ b/pkgs/servers/home-assistant/cli.nix
@@ -1,10 +1,11 @@
-{ lib, python3, glibcLocales }:
+# dateparser tests fail on pyton37: https://github.com/NixOS/nixpkgs/issues/52766
+{ lib, python36, glibcLocales }:
 
-python3.pkgs.buildPythonApplication rec {
+python36.pkgs.buildPythonApplication rec {
   pname = "homeassistant-cli";
   version = "0.4.2";
 
-  src = python3.pkgs.fetchPypi {
+  src = python36.pkgs.fetchPypi {
     inherit pname version;
     sha256 = "e0b05af9e49baf88a44f1b36c3446a106223016dceefd5f9910e204af5901f44";
   };
@@ -14,11 +15,11 @@ python3.pkgs.buildPythonApplication rec {
     sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" setup.py
   '';
 
-  propagatedBuildInputs = with python3.pkgs; [
+  propagatedBuildInputs = with python36.pkgs; [
     requests pyyaml netdisco click click-log tabulate idna jsonpath_rw jinja2 dateparser
   ];
 
-  checkInputs = with python3.pkgs; [
+  checkInputs = with python36.pkgs; [
     pytest requests-mock glibcLocales
   ];