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
lib,
3
buildPythonPackage,
4
fetchFromGitHub,
5
-
nose,
6
}:
7
8
buildPythonPackage rec {
···
18
fetchSubmodules = false;
19
};
20
21
-
nativeCheckInputs = [ nose ];
0
0
0
0
0
0
22
23
-
# dunno what's wrong but the module works regardless
24
-
doCheck = false;
0
0
0
0
0
25
26
meta = with lib; {
27
homepage = "https://github.com/dsoprea/PyInotify";
···
2
lib,
3
buildPythonPackage,
4
fetchFromGitHub,
5
+
pytestCheckHook,
6
}:
7
8
buildPythonPackage rec {
···
18
fetchSubmodules = false;
19
};
20
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 ];
28
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
+
];
36
37
meta = with lib; {
38
homepage = "https://github.com/dsoprea/PyInotify";