Merge pull request #36250 from sengaya/add-ansible-lint

ansible-lint: init at 3.4.20
This commit is contained in:
Jörg Thalheim 2018-03-06 00:12:37 +00:00 committed by GitHub
commit 07bc1ddace
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 0 deletions

View file

@ -3155,6 +3155,11 @@
github = "sellout";
name = "Greg Pfeil";
};
sengaya = {
email = "tlo@sengaya.de";
github = "sengaya";
name = "Thilo Uttendorfer";
};
sepi = {
email = "raffael@mancini.lu";
github = "sepi";

View 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 ];
};
}

View file

@ -7344,6 +7344,8 @@ with pkgs;
ansible = ansible_2_4;
ansible2 = ansible_2_4;
ansible-lint = callPackage ../development/tools/ansible-lint {};
antlr = callPackage ../development/tools/parsing/antlr/2.7.7.nix { };
antlr3_4 = callPackage ../development/tools/parsing/antlr/3.4.nix { };