ansible-lint: fix tests
This commit is contained in:
parent
861e2de8a8
commit
10b1cb28a7
@ -1,17 +1,28 @@
|
|||||||
{ stdenv, pythonPackages, ansible }:
|
{ stdenv, fetchFromGitHub, pythonPackages, ansible }:
|
||||||
|
|
||||||
pythonPackages.buildPythonPackage rec {
|
pythonPackages.buildPythonPackage rec {
|
||||||
pname = "ansible-lint";
|
pname = "ansible-lint";
|
||||||
version = "3.4.20";
|
version = "3.4.20";
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
src = pythonPackages.fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "willthames";
|
||||||
sha256 = "1e7f1d5d5ee91b817dedc0b612c2beb5ff44879d592ea17a2eaa6571aa9a2bff";
|
repo = "ansible-lint";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0wgczijrg5azn2f63hjbkas1w0f5hbvxnk3ia53w69mybk0gy044";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [ pyyaml six ] ++ [ ansible ];
|
propagatedBuildInputs = with pythonPackages; [ pyyaml six ] ++ [ ansible ];
|
||||||
|
|
||||||
|
checkInputs = [ pythonPackages.nose ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs bin/ansible-lint
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
nosetests test
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/willthames/ansible-lint";
|
homepage = "https://github.com/willthames/ansible-lint";
|
||||||
description = "Best practices checker for Ansible";
|
description = "Best practices checker for Ansible";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user