tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.inotify: modernize
pyrox.dev
1 year ago
96eb0d2c
56418396
+9
-7
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
inotify
default.nix
+9
-7
pkgs/development/python-modules/inotify/default.nix
···
3
buildPythonPackage,
4
fetchFromGitHub,
5
pytestCheckHook,
0
6
}:
7
8
-
buildPythonPackage rec {
9
pname = "inotify";
10
version = "unstable-2020-08-27";
11
-
format = "setuptools";
12
13
src = fetchFromGitHub {
14
owner = "dsoprea";
15
repo = "PyInotify";
16
rev = "f77596ae965e47124f38d7bd6587365924dcd8f7";
17
-
sha256 = "X0gu4s1R/Kg+tmf6s8SdZBab2HisJl4FxfdwKktubVc=";
18
-
fetchSubmodules = false;
19
};
20
21
postPatch = ''
···
24
--replace-fail "assertEquals" "assertEqual" \
25
'';
26
0
0
27
nativeCheckInputs = [ pytestCheckHook ];
28
29
# Disable these tests as they're flaky.
···
34
"test__renames"
35
];
36
37
-
meta = with lib; {
38
homepage = "https://github.com/dsoprea/PyInotify";
39
description = "Monitor filesystems events on Linux platforms with inotify";
40
-
license = licenses.gpl2;
41
-
platforms = platforms.linux;
42
};
43
}
···
3
buildPythonPackage,
4
fetchFromGitHub,
5
pytestCheckHook,
6
+
setuptools,
7
}:
8
9
+
buildPythonPackage {
10
pname = "inotify";
11
version = "unstable-2020-08-27";
12
+
pyproject = true;
13
14
src = fetchFromGitHub {
15
owner = "dsoprea";
16
repo = "PyInotify";
17
rev = "f77596ae965e47124f38d7bd6587365924dcd8f7";
18
+
hash = "sha256-X0gu4s1R/Kg+tmf6s8SdZBab2HisJl4FxfdwKktubVc=";
0
19
};
20
21
postPatch = ''
···
24
--replace-fail "assertEquals" "assertEqual" \
25
'';
26
27
+
build-system = [ setuptools ];
28
+
29
nativeCheckInputs = [ pytestCheckHook ];
30
31
# Disable these tests as they're flaky.
···
36
"test__renames"
37
];
38
39
+
meta = {
40
homepage = "https://github.com/dsoprea/PyInotify";
41
description = "Monitor filesystems events on Linux platforms with inotify";
42
+
license = lib.licenses.gpl2;
43
+
platforms = lib.platforms.linux;
44
};
45
}