From 09b2074e533ad8d8a704e963aab8526746580e96 Mon Sep 17 00:00:00 2001 From: Kritnich Date: Wed, 22 Jun 2022 00:26:37 +0200 Subject: [PATCH] fail2ban: Fix use of `MutableMapping` for Python >= 3.10 --- pkgs/tools/security/fail2ban/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/security/fail2ban/default.nix b/pkgs/tools/security/fail2ban/default.nix index 62bc16f6a414..ef09cc1ac71b 100644 --- a/pkgs/tools/security/fail2ban/default.nix +++ b/pkgs/tools/security/fail2ban/default.nix @@ -27,6 +27,12 @@ python3.pkgs.buildPythonApplication rec { url = "https://github.com/fail2ban/fail2ban/commit/5ac303df8a171f748330d4c645ccbf1c2c7f3497.patch"; sha256 = "sha256-aozQJHwPcJTe/D/PLQzBk1YH3OAP6Qm7wO7cai5CVYI="; }) + # fix use of MutableMapping with Python >= 3.10 + # https://github.com/fail2ban/fail2ban/issues/3142 + (fetchpatch { + url = "https://github.com/fail2ban/fail2ban/commit/294ec73f629d0e29cece3a1eb5dd60b6fccea41f.patch"; + sha256 = "sha256-Eimm4xjBDYNn5QdTyMqGgT5EXsZdd/txxcWJojXlsFE="; + }) ]; preConfigure = ''