mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 09:44:18 +00:00
python312Packages.inotify: modernize
This commit is contained in:
parent
5641839699
commit
96eb0d2cba
@ -3,19 +3,19 @@
|
|||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
|
setuptools,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage {
|
||||||
pname = "inotify";
|
pname = "inotify";
|
||||||
version = "unstable-2020-08-27";
|
version = "unstable-2020-08-27";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dsoprea";
|
owner = "dsoprea";
|
||||||
repo = "PyInotify";
|
repo = "PyInotify";
|
||||||
rev = "f77596ae965e47124f38d7bd6587365924dcd8f7";
|
rev = "f77596ae965e47124f38d7bd6587365924dcd8f7";
|
||||||
sha256 = "X0gu4s1R/Kg+tmf6s8SdZBab2HisJl4FxfdwKktubVc=";
|
hash = "sha256-X0gu4s1R/Kg+tmf6s8SdZBab2HisJl4FxfdwKktubVc=";
|
||||||
fetchSubmodules = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -24,6 +24,8 @@ buildPythonPackage rec {
|
|||||||
--replace-fail "assertEquals" "assertEqual" \
|
--replace-fail "assertEquals" "assertEqual" \
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
# Disable these tests as they're flaky.
|
# Disable these tests as they're flaky.
|
||||||
@ -34,10 +36,10 @@ buildPythonPackage rec {
|
|||||||
"test__renames"
|
"test__renames"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://github.com/dsoprea/PyInotify";
|
homepage = "https://github.com/dsoprea/PyInotify";
|
||||||
description = "Monitor filesystems events on Linux platforms with inotify";
|
description = "Monitor filesystems events on Linux platforms with inotify";
|
||||||
license = licenses.gpl2;
|
license = lib.licenses.gpl2;
|
||||||
platforms = platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user