diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/asyncinotify/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/asyncinotify/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/asyncinotify/default.nix b/nixpkgs/pkgs/development/python-modules/asyncinotify/default.nix new file mode 100644 index 000000000000..9257e12f721e --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/asyncinotify/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, fetchFromGitLab +, python +}: + +buildPythonPackage rec { + pname = "asyncinotify"; + version = "4.0.2"; + format = "flit"; + + src = fetchFromGitLab { + owner = "Taywee"; + repo = "asyncinotify"; + rev = "v${version}"; + hash = "sha256-Q7b406UENCmD9SGbaml+y2YLDi7VLZBmDkYMo8CLuVw="; + }; + + 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 ]; + }; +} |