bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
41 lines
948 B
Nix
41 lines
948 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
packaging,
|
|
python-socketio,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uptime-kuma-api";
|
|
version = "1.2.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
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 = with lib; {
|
|
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 licenses; [ mit ];
|
|
maintainers = with maintainers; [ julienmalka ];
|
|
};
|
|
}
|