From 025d3fe5a5bd30bf210bd6a83c6fc27128babcc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 26 Apr 2023 10:55:59 +0200 Subject: [PATCH] python3Packages.asyncinotify: init at 4.0.1 --- .../python-modules/asyncinotify/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/python-modules/asyncinotify/default.nix diff --git a/pkgs/development/python-modules/asyncinotify/default.nix b/pkgs/development/python-modules/asyncinotify/default.nix new file mode 100644 index 000000000000..c5f944d6a53a --- /dev/null +++ b/pkgs/development/python-modules/asyncinotify/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 13ccbd69bffd..19e5fd8fdf22 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };