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 6f158caea8d5..464cfed57f71 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 { };