python312Packages.inotify: drop nose dependency

+15 -4
+15 -4
pkgs/development/python-modules/inotify/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 - nose, 5 + pytestCheckHook, 6 6 }: 7 7 8 8 buildPythonPackage rec { ··· 18 18 fetchSubmodules = false; 19 19 }; 20 20 21 - nativeCheckInputs = [ nose ]; 21 + postPatch = '' 22 + # Needed because assertEquals was removed in python 3.12 23 + substituteInPlace tests/test_inotify.py \ 24 + --replace-fail "assertEquals" "assertEqual" \ 25 + ''; 26 + 27 + nativeCheckInputs = [ pytestCheckHook ]; 22 28 23 - # dunno what's wrong but the module works regardless 24 - doCheck = false; 29 + # Disable these tests as they're flaky. 30 + # The returned list can be in a different order, which causes the tests to fail. 31 + disabledTests = [ 32 + "test__automatic_new_watches_on_new_paths" 33 + "test__cycle" 34 + "test__renames" 35 + ]; 25 36 26 37 meta = with lib; { 27 38 homepage = "https://github.com/dsoprea/PyInotify";