Merge pull request #228295 from Cynerd/asyncinotify

python3Packages.asyncinotify: init at 4.0.1
This commit is contained in:
Sandro 2023-06-30 17:37:56 +02:00 committed by GitHub
commit 21616423fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 { };