lol
at 22.05-pre 43 lines 1.1 kB view raw
1{ lib, fetchFromGitHub, python3 }: 2 3python3.pkgs.buildPythonApplication rec { 4 pname = "gixy"; 5 version = "0.1.20"; 6 7 # package is only compatible with python 2.7 and 3.5+ 8 disabled = with python3.pkgs; !(pythonAtLeast "3.5" || isPy27); 9 10 # fetching from GitHub because the PyPi source is missing the tests 11 src = fetchFromGitHub { 12 owner = "yandex"; 13 repo = "gixy"; 14 rev = "v${version}"; 15 sha256 = "14arz3fjidb8z37m08xcpih1391varj8s0v3gri79z3qb4zq5k6b"; 16 }; 17 18 postPatch = '' 19 sed -ie '/argparse/d' setup.py 20 ''; 21 22 propagatedBuildInputs = with python3.pkgs; [ 23 cached-property 24 configargparse 25 pyparsing 26 jinja2 27 nose 28 setuptools 29 six 30 ]; 31 32 meta = with lib; { 33 description = "Nginx configuration static analyzer"; 34 longDescription = '' 35 Gixy is a tool to analyze Nginx configuration. 36 The main goal of Gixy is to prevent security misconfiguration and automate flaw detection. 37 ''; 38 homepage = "https://github.com/yandex/gixy"; 39 license = licenses.mpl20; 40 maintainers = [ maintainers.willibutz ]; 41 platforms = platforms.unix; 42 }; 43}