1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

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

This commit is contained in:
Robert Schütz 2021-02-06 11:36:59 +01:00
parent d0328678e9
commit 3fcd9361b5
4 changed files with 9 additions and 13 deletions

View file

@ -95,7 +95,7 @@ in
ALERTA_SVR_CONF_FILE = alertaConf;
};
serviceConfig = {
ExecStart = "${pkgs.python36Packages.alerta-server}/bin/alertad run --port ${toString cfg.port} --host ${cfg.bind}";
ExecStart = "${pkgs.alerta-server}/bin/alertad run --port ${toString cfg.port} --host ${cfg.bind}";
User = "alerta";
Group = "alerta";
};

View file

@ -1,17 +1,17 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, bcrypt, blinker, flask, flask-compress, flask-cors, mohawk, psycopg2, pyjwt, pymongo, python-dateutil, pytz, pyyaml, requests, requests-hawk, sentry-sdk
{ lib
, python3
}:
buildPythonPackage rec {
python3.pkgs.buildPythonApplication rec {
pname = "alerta-server";
version = "8.3.3";
src = fetchPypi {
src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "a2713a31c6e326c774a3ee0328f424f944b951935ff1b893a4a66598d61c5a97";
};
propagatedBuildInputs = [
propagatedBuildInputs = with python3.pkgs; [
bcrypt
blinker
flask
@ -31,11 +31,7 @@ buildPythonPackage rec {
doCheck = false; # We can't run the tests from Nix, because they rely on the presence of a working MongoDB server
postInstall = ''
wrapProgram $out/bin/alertad --prefix PYTHONPATH : "$PYTHONPATH"
'';
disabled = pythonOlder "3.5";
disabled = python3.pythonOlder "3.6";
meta = with lib; {
homepage = "https://alerta.io";

View file

@ -17733,6 +17733,8 @@ in
adguardhome = callPackage ../servers/adguardhome {};
alerta-server = callPackage ../servers/monitoring/alerta { };
apacheHttpd_2_4 = callPackage ../servers/http/apache-httpd/2.4.nix { };
apacheHttpd = pkgs.apacheHttpd_2_4;

View file

@ -324,8 +324,6 @@ in {
alerta = callPackage ../development/python-modules/alerta { };
alerta-server = callPackage ../development/python-modules/alerta-server { };
algebraic-data-types = callPackage ../development/python-modules/algebraic-data-types { };
allpairspy = callPackage ../development/python-modules/allpairspy { };