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 , pytest-timeout 9 , pytestCheckHook 10 , CoreServices 11 }: 12 13 buildPythonPackage rec { ··· 22 23 patches = lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [ 24 ./force-kqueue.patch 25 ]; 26 27 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; ··· 41 substituteInPlace setup.cfg \ 42 --replace "--cov=watchdog" "" \ 43 --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 ''; 50 51 disabledTests = [
··· 8 , pytest-timeout 9 , pytestCheckHook 10 , CoreServices 11 + , fetchpatch 12 }: 13 14 buildPythonPackage rec { ··· 23 24 patches = lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [ 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 + }) 32 ]; 33 34 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; ··· 48 substituteInPlace setup.cfg \ 49 --replace "--cov=watchdog" "" \ 50 --replace "--cov-report=term-missing" "" 51 ''; 52 53 disabledTests = [