From 3c49875cc6a10d2a238fdb6a21b36fe939c33ac8 Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Sat, 20 Sep 2025 20:09:36 -0400 Subject: [PATCH] python3Packages.inotify: unstable-2020-08-27 -> 0.2.12 Diff: https://github.com/dsoprea/PyInotify/compare/f77596ae965e47124f38d7bd6587365924dcd8f7..0.2.12 --- .../python-modules/inotify/default.nix | 36 +++++++++---------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/pkgs/development/python-modules/inotify/default.nix b/pkgs/development/python-modules/inotify/default.nix index b5e3fd5acff8..ae87d35f47aa 100644 --- a/pkgs/development/python-modules/inotify/default.nix +++ b/pkgs/development/python-modules/inotify/default.nix @@ -2,38 +2,34 @@ lib, buildPythonPackage, fetchFromGitHub, - pytestCheckHook, + + build, setuptools, + + nose2, + pytestCheckHook, }: -buildPythonPackage { +buildPythonPackage rec { pname = "inotify"; - version = "unstable-2020-08-27"; + version = "0.2.12"; pyproject = true; src = fetchFromGitHub { owner = "dsoprea"; repo = "PyInotify"; - rev = "f77596ae965e47124f38d7bd6587365924dcd8f7"; - hash = "sha256-X0gu4s1R/Kg+tmf6s8SdZBab2HisJl4FxfdwKktubVc="; + tag = version; + hash = "sha256-x6wvrwLDH/9UMTsAIHwCKR5Avv1givlJFFeBM//FOdg="; }; - postPatch = '' - # Needed because assertEquals was removed in python 3.12 - substituteInPlace tests/test_inotify.py \ - --replace-fail "assertEquals" "assertEqual" \ - ''; + build-system = [ + build + setuptools + ]; - build-system = [ setuptools ]; - - nativeCheckInputs = [ pytestCheckHook ]; - - # Disable these tests as they're flaky. - # The returned list can be in a different order, which causes the tests to fail. - disabledTests = [ - "test__automatic_new_watches_on_new_paths" - "test__cycle" - "test__renames" + nativeCheckInputs = [ + nose2 + pytestCheckHook ]; meta = {