From c601bb0f7cbdf976565db98c146852b0bf9643b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 30 Apr 2025 02:26:04 -0700 Subject: [PATCH] python313Packages.aiontfy: init at 0.5.1 --- .../python-modules/aiontfy/default.nix | 53 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/development/python-modules/aiontfy/default.nix diff --git a/pkgs/development/python-modules/aiontfy/default.nix b/pkgs/development/python-modules/aiontfy/default.nix new file mode 100644 index 000000000000..f369add3574b --- /dev/null +++ b/pkgs/development/python-modules/aiontfy/default.nix @@ -0,0 +1,53 @@ +{ + aiohttp, + buildPythonPackage, + fetchFromGitHub, + hatch-regex-commit, + hatchling, + lib, + mashumaro, + orjson, + pytest-asyncio, + pytest-cov-stub, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "aiontfy"; + version = "0.5.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "tr4nt0r"; + repo = "aiontfy"; + tag = "v${version}"; + hash = "sha256-WQb6sNjpQVgh+9vH7EyrmJHCWL0Mcmw4hHPHa8KsLYc="; + }; + + build-system = [ + hatch-regex-commit + hatchling + ]; + + dependencies = [ + aiohttp + mashumaro + orjson + ]; + + pythonImportsCheck = [ "aiontfy" ]; + + nativeCheckInputs = [ + pytest-asyncio + pytest-cov-stub + pytestCheckHook + ]; + + meta = { + changelog = "https://github.com/tr4nt0r/aiontfy/releases/tag/${src.tag}"; + description = "Async ntfy client library"; + homepage = "https://github.com/tr4nt0r/aiontfy"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1613dfd9e0b5..96a80105b25d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -381,6 +381,8 @@ self: super: with self; { aionotion = callPackage ../development/python-modules/aionotion { }; + aiontfy = callPackage ../development/python-modules/aiontfy { }; + aionut = callPackage ../development/python-modules/aionut { }; aiooncue = callPackage ../development/python-modules/aiooncue { };