summary refs log tree commit diff
path: root/pkgs/tools/security/fail2ban
diff options
context:
space:
mode:
authorKritnich <kritnich@kritni.ch>2022-06-22 00:26:37 +0200
committerKritnich <kritnich@kritni.ch>2022-06-22 00:26:37 +0200
commit09b2074e533ad8d8a704e963aab8526746580e96 (patch)
tree5fc68435c630590d68789495b345875e3225964b /pkgs/tools/security/fail2ban
parentd52524e11bed23e082c72e261a416c013993d49f (diff)
fail2ban: Fix use of `MutableMapping` for Python >= 3.10
Diffstat (limited to 'pkgs/tools/security/fail2ban')
-rw-r--r--pkgs/tools/security/fail2ban/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/security/fail2ban/default.nix b/pkgs/tools/security/fail2ban/default.nix
index 62bc16f6a4147..ef09cc1ac71b0 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 = ''