1{ lib 2, buildPythonPackage 3, fetchFromGitLab 4, flit-core 5, python 6}: 7 8buildPythonPackage rec { 9 pname = "asyncinotify"; 10 version = "4.0.2"; 11 format = "pyproject"; 12 13 src = fetchFromGitLab { 14 owner = "Taywee"; 15 repo = "asyncinotify"; 16 rev = "v${version}"; 17 hash = "sha256-Q7b406UENCmD9SGbaml+y2YLDi7VLZBmDkYMo8CLuVw="; 18 }; 19 20 nativeBuildInputs = [ 21 flit-core 22 ]; 23 24 checkPhase = '' 25 ${python.pythonOnBuildForHost.interpreter} ${src}/test.py 26 ''; 27 pythonImportsCheck = ["asyncinotify"]; 28 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 }; 36}