Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 52 lines 932 B view raw
1{ 2 lib, 3 python3, 4 fetchPypi, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "alerta-server"; 9 version = "9.0.1"; 10 format = "setuptools"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-v4+0l5Sx9RTxmNFnKCoKrWFl1xu1JIRZ/kiI6zi/y0I="; 15 }; 16 17 propagatedBuildInputs = with python3.pkgs; [ 18 bcrypt 19 blinker 20 cryptography 21 flask 22 flask-compress 23 flask-cors 24 mohawk 25 psycopg2 26 pyjwt 27 pymongo 28 pyparsing 29 python-dateutil 30 pytz 31 pyyaml 32 requests 33 requests-hawk 34 sentry-sdk 35 setuptools 36 ]; 37 38 # We can't run the tests from Nix, because they rely on the presence of a working MongoDB server 39 doCheck = false; 40 41 pythonImportsCheck = [ 42 "alerta" 43 ]; 44 45 meta = with lib; { 46 homepage = "https://alerta.io"; 47 description = "Alerta Monitoring System server"; 48 mainProgram = "alertad"; 49 license = licenses.asl20; 50 maintainers = [ ]; 51 }; 52}