2021-03-09 03:18:52 +00:00
|
|
|
{ lib, fetchFromGitHub, python3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
let
|
|
|
|
python = python3.override {
|
|
|
|
packageOverrides = self: super: {
|
2023-08-04 22:07:22 +00:00
|
|
|
pyparsing = super.pyparsing.overridePythonAttrs rec {
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "2.4.7";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyparsing";
|
|
|
|
repo = "pyparsing";
|
|
|
|
rev = "pyparsing_${version}";
|
|
|
|
sha256 = "14pfy80q2flgzjcx8jkracvnxxnr59kjzp3kdm5nh232gk1v6g6h";
|
|
|
|
};
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
super.setuptools
|
|
|
|
];
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
python.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gixy";
|
|
|
|
version = "0.1.20";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# package is only compatible with python 2.7 and 3.5+
|
2022-02-10 20:34:41 +00:00
|
|
|
disabled = with python.pkgs; !(pythonAtLeast "3.5" || isPy27);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# fetching from GitHub because the PyPi source is missing the tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yandex";
|
|
|
|
repo = "gixy";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "14arz3fjidb8z37m08xcpih1391varj8s0v3gri79z3qb4zq5k6b";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -ie '/argparse/d' setup.py
|
|
|
|
'';
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
2020-04-24 23:36:52 +00:00
|
|
|
cached-property
|
2021-07-24 12:14:16 +00:00
|
|
|
configargparse
|
2020-04-24 23:36:52 +00:00
|
|
|
pyparsing
|
|
|
|
jinja2
|
2023-10-09 19:29:22 +00:00
|
|
|
nose3
|
2020-04-24 23:36:52 +00:00
|
|
|
setuptools
|
|
|
|
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 ];
|
2021-06-06 07:54:09 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|