blob: 816eb2ebe254edbad05f3628d7eeccdb2d0e2f6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
lib,
buildPythonPackage,
fetchPypi,
packaging,
python-socketio,
}:
buildPythonPackage rec {
pname = "uptime-kuma-api";
version = "1.2.1";
format = "setuptools";
src = fetchPypi {
pname = "uptime_kuma_api";
inherit version;
hash = "sha256-tZ5ln3sy6W5RLcwjzLbhobCNLbHXIhXIzrcOVCG+Z+E=";
};
propagatedBuildInputs = [
packaging
python-socketio
python-socketio.optional-dependencies.client
];
pythonImportsCheck = [ "uptime_kuma_api" ];
# Tests need an uptime-kuma instance to run
doCheck = false;
meta = {
description = "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/${version}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ julienmalka ];
};
}
|