python3Packages.asyncinotify: init at 4.0.1

This commit is contained in:
Karel Kočí 2023-04-26 10:55:59 +02:00
parent 031e58e25d
commit 025d3fe5a5
No known key found for this signature in database
GPG Key ID: D83BD732AC2BD828
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitLab
, python
}:
buildPythonPackage rec {
pname = "asyncinotify";
version = "4.0.1";
format = "flit";
src = fetchFromGitLab {
owner = "Taywee";
repo = "asyncinotify";
rev = "v${version}";
hash = "sha256-DMRuj16KjO+0uAB33UCVPdUiQGzri1b/z9KVqQYp2Po=";
};
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 ];
};
}

View File

@ -734,6 +734,8 @@ self: super: with self; {
asynccmd = callPackage ../development/python-modules/asynccmd { };
asyncinotify = callPackage ../development/python-modules/asyncinotify { };
asyncio-dgram = callPackage ../development/python-modules/asyncio-dgram { };
asyncio-mqtt = callPackage ../development/python-modules/asyncio_mqtt { };