about summary refs log tree commit diff
path: root/pkgs/development/python-modules/inotify
diff options
context:
space:
mode:
authorMaciej Krüger <mkg20001@gmail.com>2021-10-20 22:28:41 +0200
committerMaciej Krüger <mkg20001@gmail.com>2021-11-03 14:29:26 +0100
commitd5315c6a78b612e3ab91c42b5ecc81914c987177 (patch)
treeb38a3bcaa32c93d1c5c9fcf6eeb23514f1a749a9 /pkgs/development/python-modules/inotify
parent92a0174a08adbd4290da57629180508490a28544 (diff)
python3.pkgs.inotify: init at 0.2.4
Diffstat (limited to 'pkgs/development/python-modules/inotify')
-rw-r--r--pkgs/development/python-modules/inotify/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/inotify/default.nix b/pkgs/development/python-modules/inotify/default.nix
new file mode 100644
index 0000000000000..3590f53e1ecd9
--- /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;
+  };
+}