autosuspend: downgrade tzlocal to 4.3.1

autosuspend is incompatible with tzlocal v5
See https://github.com/regebro/tzlocal#api-change

+17 -3
+17 -3
pkgs/os-specific/linux/autosuspend/default.nix
··· 3 , python3 4 }: 5 6 - python3.pkgs.buildPythonApplication rec { 7 pname = "autosuspend"; 8 version = "6.0.0"; 9 ··· 21 --replace '--cov-config=setup.cfg' "" 22 ''; 23 24 - propagatedBuildInputs = with python3.pkgs; [ 25 dbus-python 26 icalendar 27 jsonpath-ng ··· 36 tzlocal 37 ]; 38 39 - nativeCheckInputs = with python3.pkgs; [ 40 freezegun 41 pytest-datadir 42 pytest-httpserver
··· 3 , python3 4 }: 5 6 + let 7 + python = python3.override { 8 + packageOverrides = self: super: { 9 + # autosuspend is incompatible with tzlocal v5 10 + # See https://github.com/regebro/tzlocal#api-change 11 + tzlocal = super.tzlocal.overridePythonAttrs (prev: { 12 + src = prev.src.override { 13 + version = "4.3.1"; 14 + hash = "sha256-7jLvjCCAPBmpbtNmrd09SnKe9jCctcc1mgzC7ut/pGo="; 15 + }; 16 + }); 17 + }; 18 + }; 19 + in 20 + python.pkgs.buildPythonApplication rec { 21 pname = "autosuspend"; 22 version = "6.0.0"; 23 ··· 35 --replace '--cov-config=setup.cfg' "" 36 ''; 37 38 + propagatedBuildInputs = with python.pkgs; [ 39 dbus-python 40 icalendar 41 jsonpath-ng ··· 50 tzlocal 51 ]; 52 53 + nativeCheckInputs = with python.pkgs; [ 54 freezegun 55 pytest-datadir 56 pytest-httpserver