stateless-uptime-kuma/uptime-kuma-api.nix

45 lines
945 B
Nix
Raw Normal View History

2024-04-18 18:23:11 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
packaging,
python-socketio,
requests,
2024-04-16 22:48:52 +02:00
}:
buildPythonPackage rec {
pname = "uptime-kuma-api";
version = "1.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "lucasheld";
repo = "uptime-kuma-api";
rev = version;
hash = "sha256-Mgp4bSQPiEeulK9dAl+Di4Nj1HG3oVFGKr1bIdRZI44=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
packaging
python-socketio
requests
] ++ 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; [ ];
};
}