summary refs log tree commit diff
path: root/pkgs/development/python-modules/asyncinotify/default.nix
blob: 9049a22851854cd753bd3b514efcef97e8567fbf (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitLab
, flit-core
, python
}:

buildPythonPackage rec {
  pname = "asyncinotify";
  version = "4.0.2";
  format = "pyproject";

  src = fetchFromGitLab {
    owner = "Taywee";
    repo = "asyncinotify";
    rev = "v${version}";
    hash = "sha256-Q7b406UENCmD9SGbaml+y2YLDi7VLZBmDkYMo8CLuVw=";
  };

  nativeBuildInputs = [
    flit-core
  ];

  checkPhase = ''
    ${python.pythonForBuild.interpreter} ${src}/test.py
  '';
  pythonImportsCheck = ["asyncinotify"];

  meta = with lib; {
    description = "A simple optionally-async python inotify library, focused on simplicity of use and operation, and leveraging modern Python features";
    homepage = "https://pypi.org/project/asyncinotify/";
    changelog = "https://gitlab.com/Taywee/asyncinotify/-/blob/master/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ cynerd ];
  };
}