summary refs log tree commit diff
path: root/pkgs/tools/admin/gixy/default.nix
blob: 77451a6bc9e36f221d80bad262b4f362ef5db50e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib, fetchFromGitHub, python }:

python.pkgs.buildPythonApplication rec {
  name = "gixy-${version}";
  version = "0.1.8";

  # package is only compatible with python 2.7 and 3.5+
  disabled = with python.pkgs; !(pythonAtLeast "3.5" || isPy27);

  src = fetchFromGitHub {
    owner = "yandex";
    repo = "gixy";
    rev = "v${version}";
    sha256 = "0dg8j8pqlzdvmyfkphrizfqzggr64npb9mnm1dcwm6c3z6k2b0ii";
  };

  postPatch = ''
    sed -ie '/argparse/d' setup.py
  '';

  propagatedBuildInputs = with python.pkgs; [
    cached-property
    ConfigArgParse
    pyparsing
    jinja2
    nose
    six
  ];

  meta = with lib; {
    description = "Nginx configuration static analyzer";
    longDescription = ''
      Gixy is a tool to analyze Nginx configuration.
      The main goal of Gixy is to prevent security misconfiguration and automate flaw detection.
    '';
    homepage = https://github.com/yandex/gixy;
    license = licenses.mpl20;
    maintainers = [ maintainers.willibutz ];
    platforms = platforms.linux;
  };
}