Commit 12a842ca authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.watchdog-gevent: add patch for test

parent ef3f03f7
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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::' \