diff --git a/pkgs/development/python-modules/gatus-api/default.nix b/pkgs/development/python-modules/gatus-api/default.nix new file mode 100644 index 000000000000..52e08396d30f --- /dev/null +++ b/pkgs/development/python-modules/gatus-api/default.nix @@ -0,0 +1,43 @@ +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pytest-aiohttp, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "gatus-api"; + version = "1.2.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "TN-1"; + repo = "gatus-api"; + tag = "V${finalAttrs.version}"; + hash = "sha256-BJ5Kzfo7REmADEkgnWrhbqObR6hyLr/fBiz18A81V+k="; + }; + + build-system = [ hatchling ]; + + dependencies = [ aiohttp ]; + + nativeCheckInputs = [ + pytest-aiohttp + pytestCheckHook + ]; + + pythonImportsCheck = [ "gatus_api" ]; + + __darwinAllowLocalNetworking = true; + + meta = { + description = "Asynchronous Python client for the Gatus API"; + homepage = "https://github.com/TN-1/gatus-api"; + changelog = "https://github.com/TN-1/gatus-api/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f9cb0c73e428..e0c19100ab64 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6563,6 +6563,8 @@ self: super: with self; { inherit (pkgs) bluez glib pkg-config; }; + gatus-api = callPackage ../development/python-modules/gatus-api { }; + gawd = callPackage ../development/python-modules/gawd { }; gb-io = callPackage ../development/python-modules/gb-io { };