alerta: move to all-packages.nix and use buildPythonApplication

This commit is contained in:
Robert Schütz
2021-02-28 12:25:52 +01:00
parent 3fcd9361b5
commit 336c114214
5 changed files with 30 additions and 32 deletions
+27
View File
@@ -0,0 +1,27 @@
{ lib
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "alerta";
version = "8.4.0";
src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "260ff3118e73396104129928217b0f317ac5afdff8221874d8986df22ecf5f34";
};
propagatedBuildInputs = with python3.pkgs; [
six click requests requests-hawk pytz tabulate
];
doCheck = false;
disabled = python3.pythonOlder "3.6";
meta = with lib; {
homepage = "https://alerta.io";
description = "Alerta Monitoring System command-line interface";
license = licenses.asl20;
};
}