Merge pull request #36250 from sengaya/add-ansible-lint
ansible-lint: init at 3.4.20
This commit is contained in:
commit
07bc1ddace
3 changed files with 39 additions and 0 deletions
|
@ -3155,6 +3155,11 @@
|
||||||
github = "sellout";
|
github = "sellout";
|
||||||
name = "Greg Pfeil";
|
name = "Greg Pfeil";
|
||||||
};
|
};
|
||||||
|
sengaya = {
|
||||||
|
email = "tlo@sengaya.de";
|
||||||
|
github = "sengaya";
|
||||||
|
name = "Thilo Uttendorfer";
|
||||||
|
};
|
||||||
sepi = {
|
sepi = {
|
||||||
email = "raffael@mancini.lu";
|
email = "raffael@mancini.lu";
|
||||||
github = "sepi";
|
github = "sepi";
|
||||||
|
|
32
pkgs/development/tools/ansible-lint/default.nix
Normal file
32
pkgs/development/tools/ansible-lint/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ stdenv, fetchFromGitHub, pythonPackages, ansible }:
|
||||||
|
|
||||||
|
pythonPackages.buildPythonPackage rec {
|
||||||
|
pname = "ansible-lint";
|
||||||
|
version = "3.4.20";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "willthames";
|
||||||
|
repo = "ansible-lint";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0wgczijrg5azn2f63hjbkas1w0f5hbvxnk3ia53w69mybk0gy044";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = with pythonPackages; [ pyyaml six ] ++ [ ansible ];
|
||||||
|
|
||||||
|
checkInputs = [ pythonPackages.nose ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs bin/ansible-lint
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
nosetests test
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "https://github.com/willthames/ansible-lint";
|
||||||
|
description = "Best practices checker for Ansible";
|
||||||
|
license = stdenv.lib.licenses.mit;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.sengaya ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -7344,6 +7344,8 @@ with pkgs;
|
||||||
ansible = ansible_2_4;
|
ansible = ansible_2_4;
|
||||||
ansible2 = ansible_2_4;
|
ansible2 = ansible_2_4;
|
||||||
|
|
||||||
|
ansible-lint = callPackage ../development/tools/ansible-lint {};
|
||||||
|
|
||||||
antlr = callPackage ../development/tools/parsing/antlr/2.7.7.nix { };
|
antlr = callPackage ../development/tools/parsing/antlr/2.7.7.nix { };
|
||||||
|
|
||||||
antlr3_4 = callPackage ../development/tools/parsing/antlr/3.4.nix { };
|
antlr3_4 = callPackage ../development/tools/parsing/antlr/3.4.nix { };
|
||||||
|
|
Loading…
Reference in a new issue