diff --git a/pkgs/development/python-modules/pythonkuma/default.nix b/pkgs/development/python-modules/pythonkuma/default.nix new file mode 100644 index 000000000000..a7db14f2c312 --- /dev/null +++ b/pkgs/development/python-modules/pythonkuma/default.nix @@ -0,0 +1,52 @@ +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + hatch-regex-commit, + hatchling, + mashumaro, + prometheus-client, + pythonOlder, +}: + +buildPythonPackage rec { + pname = "pythonkuma"; + version = "0.3.1"; + pyproject = true; + + disabled = pythonOlder "3.12"; + + src = fetchFromGitHub { + owner = "tr4nt0r"; + repo = "pythonkuma"; + tag = "v${version}"; + hash = "sha256-1coD4bDLMWQLvN3zt/++hmut0DLdg7aAKz5HtDhomso="; + }; + + build-system = [ + hatch-regex-commit + hatchling + ]; + + dependencies = [ + aiohttp + mashumaro + prometheus-client + ]; + + # Tests are minimal and don't test functionality + doCheck = false; + + pythonImportsCheck = [ + "pythonkuma" + ]; + + meta = { + description = "Simple Python wrapper for Uptime Kuma"; + homepage = "https://github.com/tr4nt0r/pythonkuma"; + changelog = "https://github.com/tr4nt0r/pythonkuma/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index cf6aa4f9f917..2991b78bb160 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -6293,7 +6293,8 @@ ]; "uptime_kuma" = ps: with ps; [ - ]; # missing inputs: pythonkuma + pythonkuma + ]; "uptimerobot" = ps: with ps; [ pyuptimerobot @@ -7738,6 +7739,7 @@ "update" "upnp" "uptime" + "uptime_kuma" "uptimerobot" "usb" "usgs_earthquakes_feed" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1e9c68770676..009c0093e8fa 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14936,6 +14936,8 @@ self: super: with self; { meson = pkgs.meson.override { python3 = self.python; }; }; + pythonkuma = callPackage ../development/python-modules/pythonkuma { }; + pythonnet = callPackage ../development/python-modules/pythonnet { }; pythonocc-core = toPythonModule (