2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitLab
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncinotify";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "4.0.2";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "flit";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "Taywee";
|
|
|
|
repo = "asyncinotify";
|
|
|
|
rev = "v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-Q7b406UENCmD9SGbaml+y2YLDi7VLZBmDkYMo8CLuVw=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|