Unverified Commit 96eb0d2c authored by Pyrox's avatar Pyrox
Browse files

python312Packages.inotify: modernize

parent 56418396
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -3,19 +3,19 @@
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
buildPythonPackage {
  pname = "inotify";
  version = "unstable-2020-08-27";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "dsoprea";
    repo = "PyInotify";
    rev = "f77596ae965e47124f38d7bd6587365924dcd8f7";
    sha256 = "X0gu4s1R/Kg+tmf6s8SdZBab2HisJl4FxfdwKktubVc=";
    fetchSubmodules = false;
    hash = "sha256-X0gu4s1R/Kg+tmf6s8SdZBab2HisJl4FxfdwKktubVc=";
  };

  postPatch = ''
@@ -24,6 +24,8 @@ buildPythonPackage rec {
      --replace-fail "assertEquals" "assertEqual" \
  '';

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  # Disable these tests as they're flaky.
@@ -34,10 +36,10 @@ buildPythonPackage rec {
    "test__renames"
  ];

  meta = with lib; {
  meta = {
    homepage = "https://github.com/dsoprea/PyInotify";
    description = "Monitor filesystems events on Linux platforms with inotify";
    license = licenses.gpl2;
    platforms = platforms.linux;
    license = lib.licenses.gpl2;
    platforms = lib.platforms.linux;
  };
}