@@ -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