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";
|
2018-10-08 21:08:54 +01:00
|
|
|
version = "3.4.23";
|
2018-03-04 13:06:10 +00:00
|
|
|
|
2018-03-06 00:11:42 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "willthames";
|
|
|
|
repo = "ansible-lint";
|
|
|
|
rev = "v${version}";
|
2018-10-08 21:08:54 +01:00
|
|
|
sha256 = "0cnfgxh5m7alzm811hc95jigbca5vc1pf8fjazmsakmhdjyfbpb7";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|