depot/third_party/nixpkgs/pkgs/development/python-modules/uptime-kuma-monitor/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
800 B
Nix

{
lib,
requests,
buildPythonPackage,
fetchPypi,
prometheus-client,
pythonOlder,
}:
buildPythonPackage rec {
pname = "uptime-kuma-monitor";
version = "1.0.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "uptime_kuma_monitor";
inherit version;
sha256 = "0zi4856hj5ar4yidh7366kx3xnh8qzydw9z8vlalcn98jf3jlnk9";
};
propagatedBuildInputs = [
requests
prometheus-client
];
# Project has no test
doCheck = false;
pythonImportsCheck = [ "uptime_kuma_monitor" ];
meta = with lib; {
description = "Python wrapper around UptimeKuma /metrics endpoint";
homepage = "https://github.com/meichthys/utptime_kuma_monitor";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}