python3.pkgs.watchdog: backport upstream fix for broken test on musl (#195698)

authored by Yureka and committed by GitHub cede056b f61d6179

+7 -5
+7 -5
pkgs/development/python-modules/watchdog/default.nix
··· 8 8 , pytest-timeout 9 9 , pytestCheckHook 10 10 , CoreServices 11 + , fetchpatch 11 12 }: 12 13 13 14 buildPythonPackage rec { ··· 22 23 23 24 patches = lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [ 24 25 ./force-kqueue.patch 26 + ] ++ [ 27 + (fetchpatch { 28 + url = "https://github.com/gorakhargosh/watchdog/commit/255d1e45c17929dd5ba8a6f91aa28771109931cd.patch"; 29 + sha256 = "sha256-gGgEGuB/0g+4Pv1dXMvIdObjqKruWKkxtufS/dzSlY8="; 30 + excludes = [ "changelog.rst" ]; 31 + }) 25 32 ]; 26 33 27 34 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; ··· 41 48 substituteInPlace setup.cfg \ 42 49 --replace "--cov=watchdog" "" \ 43 50 --replace "--cov-report=term-missing" "" 44 - '' + lib.optionalString stdenv.hostPlatform.isMusl 45 - # https://github.com/gorakhargosh/watchdog/issues/920 46 - '' 47 - substituteInPlace tests/test_inotify_c.py \ 48 - --replace "Unknown error -1" "No error information" 49 51 ''; 50 52 51 53 disabledTests = [