mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
51 lines
902 B
Nix
51 lines
902 B
Nix
{ lib
|
|
, python3
|
|
, fetchPypi
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "alerta-server";
|
|
version = "9.0.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-v4+0l5Sx9RTxmNFnKCoKrWFl1xu1JIRZ/kiI6zi/y0I=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
bcrypt
|
|
blinker
|
|
cryptography
|
|
flask
|
|
flask-compress
|
|
flask-cors
|
|
mohawk
|
|
psycopg2
|
|
pyjwt
|
|
pymongo
|
|
pyparsing
|
|
python-dateutil
|
|
pytz
|
|
pyyaml
|
|
requests
|
|
requests-hawk
|
|
sentry-sdk
|
|
setuptools
|
|
];
|
|
|
|
# We can't run the tests from Nix, because they rely on the presence of a working MongoDB server
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"alerta"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://alerta.io";
|
|
description = "Alerta Monitoring System server";
|
|
mainProgram = "alertad";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|