mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
40 lines
820 B
Nix
40 lines
820 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3Packages
|
|
, prometheus-alertmanager
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "prometheus-xmpp-alerts";
|
|
version = "0.5.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jelmer";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-gb7lFRqqw4w/B+Sw0iteDkuGsPfw/ZZ+sRMTu5vxIUo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
prometheus-alertmanager
|
|
] ++ (with python3Packages; [
|
|
aiohttp
|
|
slixmpp
|
|
prometheus-client
|
|
pyyaml
|
|
]);
|
|
|
|
checkInputs = with python3Packages; [
|
|
unittestCheckHook
|
|
pytz
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|