autosuspend: update tzlocal override

This commit is contained in:
Robert Schütz 2023-11-28 18:17:53 -08:00
parent cf82f1ad76
commit 01e90b2196

View file

@ -1,5 +1,6 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, fetchPypi
, python3 , python3
}: }:
@ -8,11 +9,16 @@ let
packageOverrides = self: super: { packageOverrides = self: super: {
# autosuspend is incompatible with tzlocal v5 # autosuspend is incompatible with tzlocal v5
# See https://github.com/regebro/tzlocal#api-change # See https://github.com/regebro/tzlocal#api-change
tzlocal = super.tzlocal.overridePythonAttrs (prev: { tzlocal = super.tzlocal.overridePythonAttrs (prev: rec {
src = prev.src.override {
version = "4.3.1"; version = "4.3.1";
src = fetchPypi {
inherit (prev) pname;
inherit version;
hash = "sha256-7jLvjCCAPBmpbtNmrd09SnKe9jCctcc1mgzC7ut/pGo="; hash = "sha256-7jLvjCCAPBmpbtNmrd09SnKe9jCctcc1mgzC7ut/pGo=";
}; };
propagatedBuildInputs = with self; [
pytz-deprecation-shim
];
}); });
}; };
}; };