nixpkgs/pkgs/development/tools/ansible-lint/default.nix

33 lines
775 B
Nix
Raw Normal View History

2018-03-06 00:11:42 +00:00
{ stdenv, fetchFromGitHub, pythonPackages, ansible }:
2018-03-04 13:06:10 +00:00
pythonPackages.buildPythonPackage rec {
pname = "ansible-lint";
version = "3.4.20";
2018-03-06 00:11:42 +00:00
src = fetchFromGitHub {
owner = "willthames";
repo = "ansible-lint";
rev = "v${version}";
sha256 = "0wgczijrg5azn2f63hjbkas1w0f5hbvxnk3ia53w69mybk0gy044";
2018-03-04 13:06:10 +00:00
};
propagatedBuildInputs = with pythonPackages; [ pyyaml six ] ++ [ ansible ];
2018-03-06 00:11:42 +00:00
checkInputs = [ pythonPackages.nose ];
postPatch = ''
patchShebangs bin/ansible-lint
'';
checkPhase = ''
nosetests test
'';
2018-03-04 13:06:10 +00:00
meta = {
homepage = "https://github.com/willthames/ansible-lint";
description = "Best practices checker for Ansible";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.sengaya ];
};
}