nixpkgs/pkgs/tools/admin/gixy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.5 KiB
Nix
Raw Normal View History

2021-03-03 03:28:44 +01:00
{ lib, fetchFromGitHub, python3 }:
2017-11-12 23:03:59 +01:00
2022-01-25 14:19:18 +01:00
let
python = python3.override {
packageOverrides = self: super: {
pyparsing = super.pyparsing.overridePythonAttrs (oldAttrs: rec {
version = "2.4.7";
src = fetchFromGitHub {
owner = "pyparsing";
repo = "pyparsing";
rev = "pyparsing_${version}";
sha256 = "14pfy80q2flgzjcx8jkracvnxxnr59kjzp3kdm5nh232gk1v6g6h";
};
});
};
};
in
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+
2022-01-25 14:19:18 +01:00
disabled = with python.pkgs; !(pythonAtLeast "3.5" || isPy27);
2017-11-12 23:03:59 +01:00
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
'';
2022-01-25 14:19:18 +01:00
propagatedBuildInputs = with python.pkgs; [
2017-11-12 23:03:59 +01:00
cached-property
configargparse
2017-11-12 23:03:59 +01:00
pyparsing
jinja2
nose
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";
2017-11-12 23:03:59 +01:00
license = licenses.mpl20;
maintainers = [ maintainers.willibutz ];
platforms = platforms.unix;
2017-11-12 23:03:59 +01:00
};
}