python312Packages.inotify: modernize

+9 -7
+9 -7
pkgs/development/python-modules/inotify/default.nix
··· 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 5 pytestCheckHook, 6 + setuptools, 6 7 }: 7 8 8 - buildPythonPackage rec { 9 + buildPythonPackage { 9 10 pname = "inotify"; 10 11 version = "unstable-2020-08-27"; 11 - format = "setuptools"; 12 + pyproject = true; 12 13 13 14 src = fetchFromGitHub { 14 15 owner = "dsoprea"; 15 16 repo = "PyInotify"; 16 17 rev = "f77596ae965e47124f38d7bd6587365924dcd8f7"; 17 - sha256 = "X0gu4s1R/Kg+tmf6s8SdZBab2HisJl4FxfdwKktubVc="; 18 - fetchSubmodules = false; 18 + hash = "sha256-X0gu4s1R/Kg+tmf6s8SdZBab2HisJl4FxfdwKktubVc="; 19 19 }; 20 20 21 21 postPatch = '' ··· 24 24 --replace-fail "assertEquals" "assertEqual" \ 25 25 ''; 26 26 27 + build-system = [ setuptools ]; 28 + 27 29 nativeCheckInputs = [ pytestCheckHook ]; 28 30 29 31 # Disable these tests as they're flaky. ··· 34 36 "test__renames" 35 37 ]; 36 38 37 - meta = with lib; { 39 + meta = { 38 40 homepage = "https://github.com/dsoprea/PyInotify"; 39 41 description = "Monitor filesystems events on Linux platforms with inotify"; 40 - license = licenses.gpl2; 41 - platforms = platforms.linux; 42 + license = lib.licenses.gpl2; 43 + platforms = lib.platforms.linux; 42 44 }; 43 45 }