git.iko.soy/typeable/nixpkgs
on master help sign in
home-assistant-cli: use python36

dateparser tests fail on python36: https://github.com/NixOS/nixpkgs/issues/52766

commitc3b01eed801ff4eb74a8c2637866d16ee26db2c7 authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de> dateTue 29 Jan 2019, 23:40 (8 years ago) parentcfd556f
1 file changed+6−5
pkgs/servers/home-assistant/cli.nix+6−5
pkgs/servers/home-assistant/cli.nix+6−5
@@ -1,10 +1,11 @@
1−{ lib, python3, glibcLocales }:
1+# dateparser tests fail on pyton37: https://github.com/NixOS/nixpkgs/issues/52766
2+{ lib, python36, glibcLocales }:
23
3−python3.pkgs.buildPythonApplication rec {
4+python36.pkgs.buildPythonApplication rec {
45 pname = "homeassistant-cli";
56 version = "0.4.2";
67
7− src = python3.pkgs.fetchPypi {
8+ src = python36.pkgs.fetchPypi {
89 inherit pname version;
910 sha256 = "e0b05af9e49baf88a44f1b36c3446a106223016dceefd5f9910e204af5901f44";
1011 };
@@ -14,11 +15,11 @@ python3.pkgs.buildPythonApplication rec {
1415 sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" setup.py
1516 '';
1617
17− propagatedBuildInputs = with python3.pkgs; [
18+ propagatedBuildInputs = with python36.pkgs; [
1819 requests pyyaml netdisco click click-log tabulate idna jsonpath_rw jinja2 dateparser
1920 ];
2021
21− checkInputs = with python3.pkgs; [
22+ checkInputs = with python36.pkgs; [
2223 pytest requests-mock glibcLocales
2324 ];
2425