Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / asyncinotify / default.nix
blobfeb778c729aafb8f0bdb6e6567e4cf760a206f10
1 { lib
2 , buildPythonPackage
3 , fetchFromGitLab
4 , flit-core
5 , python
6 }:
8 buildPythonPackage rec {
9   pname = "asyncinotify";
10   version = "4.0.2";
11   format = "pyproject";
13   src = fetchFromGitLab {
14     owner = "Taywee";
15     repo = "asyncinotify";
16     rev = "v${version}";
17     hash = "sha256-Q7b406UENCmD9SGbaml+y2YLDi7VLZBmDkYMo8CLuVw=";
18   };
20   nativeBuildInputs = [
21     flit-core
22   ];
24   checkPhase = ''
25     ${python.pythonOnBuildForHost.interpreter} ${src}/test.py
26   '';
27   pythonImportsCheck = ["asyncinotify"];
29   meta = with lib; {
30     description = "A simple optionally-async python inotify library, focused on simplicity of use and operation, and leveraging modern Python features";
31     homepage = "https://pypi.org/project/asyncinotify/";
32     changelog = "https://gitlab.com/Taywee/asyncinotify/-/blob/master/CHANGELOG.md";
33     license = licenses.mit;
34     maintainers = with maintainers; [ cynerd ];
35   };