diff options
author | WilliButz <wbutz@cyberfnord.de> | 2017-11-12 23:03:59 +0100 |
---|---|---|
committer | WilliButz <wbutz@cyberfnord.de> | 2017-11-17 15:36:52 +0100 |
commit | 489fd5a7ce5d4b6376a0ad7de2daa13d5813f9a8 (patch) | |
tree | 8e0b93359ba9f63c662cf4d29ac9e9ed85448042 /pkgs/tools/admin/gixy | |
parent | c122dadb51f74c2246b4139bff3dc27e749ca2cc (diff) |
gixy: init at 0.1.8
Diffstat (limited to 'pkgs/tools/admin/gixy')
-rw-r--r-- | pkgs/tools/admin/gixy/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/admin/gixy/default.nix b/pkgs/tools/admin/gixy/default.nix new file mode 100644 index 0000000000000..77451a6bc9e36 --- /dev/null +++ b/pkgs/tools/admin/gixy/default.nix @@ -0,0 +1,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; + }; +} |