about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFabian Affolter2024-04-30 19:41:41 +0200
committerFabian Affolter2024-04-30 19:41:41 +0200
commit12a842cafd77064869e81f9a6ba6fbf6a559bbf1 (patch)
tree1d9eb42fe74eafa9e9309111199bead224257c20 /pkgs
parentef3f03f77a2715e7db16d9a79093aeb07c7c91bd (diff)
python312Packages.watchdog-gevent: add patch for test
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/watchdog-gevent/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/watchdog-gevent/default.nix b/pkgs/development/python-modules/watchdog-gevent/default.nix
index 2db64a84999c..fb5951a38ce4 100644
--- a/pkgs/development/python-modules/watchdog-gevent/default.nix
+++ b/pkgs/development/python-modules/watchdog-gevent/default.nix
@@ -2,6 +2,7 @@
   lib,
   buildPythonPackage,
   fetchFromGitHub,
+  fetchpatch,
   gevent,
   pytestCheckHook,
   setuptools,
@@ -23,6 +24,15 @@ buildPythonPackage rec {
     hash = "sha256-FESm3fNuLmOg2ilI/x8U9LuAimHLnahcTHYzW/nzOVY=";
   };
 
+  patches = [
+    # Add new event_filter argument to GeventEmitter
+    (fetchpatch {
+      name = "new-event_filter-argument.patch";
+      url = "https://github.com/Bogdanp/watchdog_gevent/commit/a98b6599aefb6f1ea6f9682485ed460c52f6e55f.patch";
+      hash = "sha256-lbUtl8IbnJjlsIpbC+wXLvYB+ZtUuHWqFtf31Bfqc2I=";
+    })
+  ];
+
   postPatch = ''
     sed -i setup.cfg \
       -e 's:--cov watchdog_gevent::' \