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 3 , python3 4 4 }: 5 5 6 - python3.pkgs.buildPythonApplication rec { 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 { 7 21 pname = "autosuspend"; 8 22 version = "6.0.0"; 9 23 ··· 21 35 --replace '--cov-config=setup.cfg' "" 22 36 ''; 23 37 24 - propagatedBuildInputs = with python3.pkgs; [ 38 + propagatedBuildInputs = with python.pkgs; [ 25 39 dbus-python 26 40 icalendar 27 41 jsonpath-ng ··· 36 50 tzlocal 37 51 ]; 38 52 39 - nativeCheckInputs = with python3.pkgs; [ 53 + nativeCheckInputs = with python.pkgs; [ 40 54 freezegun 41 55 pytest-datadir 42 56 pytest-httpserver