From d5315c6a78b612e3ab91c42b5ecc81914c987177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Wed, 20 Oct 2021 22:28:41 +0200 Subject: [PATCH] python3.pkgs.inotify: init at 0.2.4 --- .../python-modules/inotify/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/inotify/default.nix diff --git a/pkgs/development/python-modules/inotify/default.nix b/pkgs/development/python-modules/inotify/default.nix new file mode 100644 index 000000000000..3590f53e1ecd --- /dev/null +++ b/pkgs/development/python-modules/inotify/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, nose +}: + +buildPythonPackage rec { + pname = "inotify"; + version = "unstable-2020-08-27"; + + src = fetchFromGitHub { + owner = "dsoprea"; + repo = "PyInotify"; + rev = "f77596ae965e47124f38d7bd6587365924dcd8f7"; + sha256 = "X0gu4s1R/Kg+tmf6s8SdZBab2HisJl4FxfdwKktubVc="; + fetchSubmodules = false; + }; + + checkInputs = [ + nose + ]; + + # dunno what's wrong but the module works regardless + doCheck = false; + + meta = with lib; { + homepage = "https://github.com/dsoprea/PyInotify"; + description = "Monitor filesystems events on Linux platforms with inotify"; + license = licenses.gpl2; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a94b532bfd71..9f4a5c8fed5c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3770,6 +3770,8 @@ in { inkex = callPackage ../development/python-modules/inkex { }; + inotify = callPackage ../development/python-modules/inotify { }; + inotify-simple = callPackage ../development/python-modules/inotify-simple { }; inotifyrecursive = callPackage ../development/python-modules/inotifyrecursive { };