tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.inotify: drop nose dependency
pyrox.dev
1 year ago
56418396
cd6b650c
+15
-4
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
inotify
default.nix
+15
-4
pkgs/development/python-modules/inotify/default.nix
···
2
2
lib,
3
3
buildPythonPackage,
4
4
fetchFromGitHub,
5
5
-
nose,
5
5
+
pytestCheckHook,
6
6
}:
7
7
8
8
buildPythonPackage rec {
···
18
18
fetchSubmodules = false;
19
19
};
20
20
21
21
-
nativeCheckInputs = [ nose ];
21
21
+
postPatch = ''
22
22
+
# Needed because assertEquals was removed in python 3.12
23
23
+
substituteInPlace tests/test_inotify.py \
24
24
+
--replace-fail "assertEquals" "assertEqual" \
25
25
+
'';
26
26
+
27
27
+
nativeCheckInputs = [ pytestCheckHook ];
22
28
23
23
-
# dunno what's wrong but the module works regardless
24
24
-
doCheck = false;
29
29
+
# Disable these tests as they're flaky.
30
30
+
# The returned list can be in a different order, which causes the tests to fail.
31
31
+
disabledTests = [
32
32
+
"test__automatic_new_watches_on_new_paths"
33
33
+
"test__cycle"
34
34
+
"test__renames"
35
35
+
];
25
36
26
37
meta = with lib; {
27
38
homepage = "https://github.com/dsoprea/PyInotify";