2021-04-29 21:29:51 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3Packages
|
|
|
|
, prometheus-alertmanager
|
2022-08-06 16:32:04 +00:00
|
|
|
, unittestCheckHook
|
2021-04-29 21:29:51 +00:00
|
|
|
}:
|
2020-02-01 14:02:58 +00:00
|
|
|
|
2021-04-29 21:29:51 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-02-01 14:02:58 +00:00
|
|
|
pname = "prometheus-xmpp-alerts";
|
2022-03-12 10:37:42 +00:00
|
|
|
version = "0.5.3";
|
2020-02-01 14:02:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jelmer";
|
|
|
|
repo = pname;
|
2021-04-29 21:29:51 +00:00
|
|
|
rev = "v${version}";
|
2022-03-12 10:37:42 +00:00
|
|
|
sha256 = "sha256-gb7lFRqqw4w/B+Sw0iteDkuGsPfw/ZZ+sRMTu5vxIUo=";
|
2020-02-01 14:02:58 +00:00
|
|
|
};
|
|
|
|
|
2021-04-29 21:29:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
prometheus-alertmanager
|
|
|
|
] ++ (with python3Packages; [
|
|
|
|
aiohttp
|
|
|
|
slixmpp
|
2021-08-26 00:08:48 +00:00
|
|
|
prometheus-client
|
2021-04-29 21:29:51 +00:00
|
|
|
pyyaml
|
|
|
|
]);
|
|
|
|
|
|
|
|
checkInputs = with python3Packages; [
|
2022-08-06 16:32:04 +00:00
|
|
|
unittestCheckHook
|
2021-04-29 21:29:51 +00:00
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
2020-02-01 14:02:58 +00:00
|
|
|
meta = {
|
|
|
|
description = "XMPP Web hook for Prometheus";
|
|
|
|
homepage = "https://github.com/jelmer/prometheus-xmpp-alerts";
|
|
|
|
maintainers = with lib.maintainers; [ fpletz ];
|
|
|
|
license = with lib.licenses; [ asl20 ];
|
|
|
|
};
|
|
|
|
}
|