2017-11-12 23:03:59 +01:00
|
|
|
{ lib, fetchFromGitHub, python }:
|
|
|
|
|
|
|
|
python.pkgs.buildPythonApplication rec {
|
2018-03-04 12:09:08 +01:00
|
|
|
pname = "gixy";
|
2018-09-28 23:28:10 +02:00
|
|
|
version = "0.1.20";
|
2017-11-12 23:03:59 +01:00
|
|
|
|
|
|
|
# package is only compatible with python 2.7 and 3.5+
|
|
|
|
disabled = with python.pkgs; !(pythonAtLeast "3.5" || isPy27);
|
|
|
|
|
2018-03-04 12:09:08 +01:00
|
|
|
# fetching from GitHub because the PyPi source is missing the tests
|
2017-11-12 23:03:59 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yandex";
|
|
|
|
repo = "gixy";
|
|
|
|
rev = "v${version}";
|
2018-09-28 23:28:10 +02:00
|
|
|
sha256 = "14arz3fjidb8z37m08xcpih1391varj8s0v3gri79z3qb4zq5k6b";
|
2017-11-12 23:03:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -ie '/argparse/d' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
|
|
|
cached-property
|
|
|
|
ConfigArgParse
|
|
|
|
pyparsing
|
|
|
|
jinja2
|
|
|
|
nose
|
2019-09-09 09:59:58 +02:00
|
|
|
setuptools
|
2017-11-12 23:03:59 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|