4 , prometheus-alertmanager
6 , prometheus-xmpp-alerts
9 python3Packages.buildPythonApplication rec {
10 pname = "prometheus-xmpp-alerts";
14 src = fetchFromGitHub {
18 sha256 = "sha256-iwqcowwJktZQfdxykpsw/MweAPY0KF7ojVwvk1LP8a4=";
22 substituteInPlace pyproject.toml \
23 --replace "bs4" "beautifulsoup4"
26 propagatedBuildInputs = [
27 prometheus-alertmanager
28 ] ++ (with python3Packages; [
38 nativeCheckInputs = with python3Packages; [
44 pythonImportsCheck = [ "prometheus_xmpp" ];
47 binaryWorks = runCommand "${pname}-binary-test" {} ''
48 # Running with --help to avoid it erroring due to a missing config file
49 ${prometheus-xmpp-alerts}/bin/prometheus-xmpp-alerts --help | tee $out
50 grep "usage: prometheus-xmpp-alerts" $out
55 description = "XMPP Web hook for Prometheus";
56 mainProgram = "prometheus-xmpp-alerts";
57 homepage = "https://github.com/jelmer/prometheus-xmpp-alerts";
58 maintainers = with lib.maintainers; [ fpletz ];
59 license = with lib.licenses; [ asl20 ];