2024-04-18 18:23:11 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-12-07 23:49:25 +01:00
|
|
|
fetchFromGitea,
|
2024-04-18 18:23:11 +02:00
|
|
|
setuptools,
|
|
|
|
wheel,
|
|
|
|
packaging,
|
|
|
|
python-socketio,
|
|
|
|
requests,
|
2024-04-16 22:48:52 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uptime-kuma-api";
|
2024-12-07 23:49:25 +01:00
|
|
|
version = "2.0.0";
|
2024-04-16 22:48:52 +02:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-12-07 23:49:25 +01:00
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "git.dgnum.eu";
|
|
|
|
owner = "Luj";
|
2024-04-16 22:48:52 +02:00
|
|
|
repo = "uptime-kuma-api";
|
2024-12-07 23:49:25 +01:00
|
|
|
rev = "782037348df18dd32c3904c812c289f3d2d79170";
|
|
|
|
hash = "sha256-YK4KMtKPlxqWwzB6lLyFqLvq1RCiUWrIILcVmuiirFw=";
|
2024-04-16 22:48:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
packaging
|
|
|
|
python-socketio
|
|
|
|
requests
|
2024-04-21 11:35:27 +02:00
|
|
|
] ++ python-socketio.optional-dependencies.client;
|
2024-04-16 22:48:52 +02:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "uptime_kuma_api" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python wrapper for the Uptime Kuma Socket.IO API";
|
|
|
|
homepage = "https://github.com/lucasheld/uptime-kuma-api";
|
|
|
|
changelog = "https://github.com/lucasheld/uptime-kuma-api/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|