2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python-socketio
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uptime-kuma-api";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.1.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "setuptools";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "uptime_kuma_api";
|
|
|
|
inherit version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-3Y7PGidtmBjrIXGAElzRAv//kvX0ZcK3OX0xnfeuLWE=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-socketio
|
|
|
|
python-socketio.optional-dependencies.client
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"uptime_kuma_api"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests need an uptime-kuma instance to run
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python wrapper for the Uptime Kuma Socket.IO API";
|
|
|
|
homepage = "https://github.com/lucasheld/uptime-kuma-api";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/lucasheld/uptime-kuma-api/blob/${version}/CHANGELOG.md";
|
2023-02-02 18:25:31 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ julienmalka ];
|
|
|
|
};
|
|
|
|
}
|