summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/inotify/default.nix
blob: ae87d35f47aa9283163abb6eb4a90460f299ba5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  build,
  setuptools,

  nose2,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "inotify";
  version = "0.2.12";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "dsoprea";
    repo = "PyInotify";
    tag = version;
    hash = "sha256-x6wvrwLDH/9UMTsAIHwCKR5Avv1givlJFFeBM//FOdg=";
  };

  build-system = [
    build
    setuptools
  ];

  nativeCheckInputs = [
    nose2
    pytestCheckHook
  ];

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