@@ -1,29 +1,29 @@
1−{ lib, python3 }:
1+{ lib, python3, glibcLocales }:
22
33python3.pkgs.buildPythonApplication rec {
44 pname = "homeassistant-cli";
5− version = "0.3.0";
5+ version = "0.4.2";
66
77 src = python3.pkgs.fetchPypi {
88 inherit pname version;
9− sha256 = "42d7cb008801d7a448b62aed1fc46dd450ee67397bf16faabb02f691417db4b2";
9+ sha256 = "e0b05af9e49baf88a44f1b36c3446a106223016dceefd5f9910e204af5901f44";
1010 };
1111
1212 postPatch = ''
1313 # Ignore pinned versions
14− sed -i "s/'\(.*\)==.*'/'\1'/g" setup.py
14+ sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" setup.py
1515 '';
1616
1717 propagatedBuildInputs = with python3.pkgs; [
18− requests pyyaml netdisco click click-log tabulate idna jsonpath_rw jinja2
18+ requests pyyaml netdisco click click-log tabulate idna jsonpath_rw jinja2 dateparser
1919 ];
2020
2121 checkInputs = with python3.pkgs; [
22− pytest requests-mock
22+ pytest requests-mock glibcLocales
2323 ];
2424
2525 checkPhase = ''
26− pytest
26+ LC_ALL=en_US.UTF-8 pytest
2727 '';
2828
2929 meta = with lib; {