depot/third_party/nixpkgs/pkgs/development/python-modules/uptime-kuma-api/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

38 lines
805 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python-socketio
, pythonOlder
}:
buildPythonPackage rec {
pname = "uptime-kuma-api";
version = "0.10.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "uptime_kuma_api";
inherit version;
hash = "sha256-qBSXQyruLVGJ0QeihnEUXOqYpvVftdFM5ED3usHT0OQ=";
};
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";
license = with licenses; [ mit ];
maintainers = with maintainers; [ julienmalka ];
};
}