Merge pull request #122932 from mweinelt/ansible-lint
This commit is contained in:
commit
cc2fc35667
|
@ -2,8 +2,8 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, isPy27
|
, isPy27
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, python
|
, setuptools-scm
|
||||||
, ansible
|
, ansible-base
|
||||||
, enrich
|
, enrich
|
||||||
, flaky
|
, flaky
|
||||||
, pyyaml
|
, pyyaml
|
||||||
|
@ -27,10 +27,12 @@ buildPythonPackage rec {
|
||||||
sha256 = "sha256-tnuWKEB66bwVuwu3H3mHG99ZP+/msGhMDMRL5fyQgD8=";
|
sha256 = "sha256-tnuWKEB66bwVuwu3H3mHG99ZP+/msGhMDMRL5fyQgD8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ python ];
|
nativeBuildInputs = [
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
ansible
|
ansible-base
|
||||||
enrich
|
enrich
|
||||||
flaky
|
flaky
|
||||||
pyyaml
|
pyyaml
|
||||||
|
@ -65,7 +67,7 @@ buildPythonPackage rec {
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
# ansible wants to write to $HOME and crashes if it can't
|
# ansible wants to write to $HOME and crashes if it can't
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
export PATH=$PATH:${lib.makeBinPath [ ansible ]}
|
export PATH=$PATH:${lib.makeBinPath [ ansible-base ]}
|
||||||
|
|
||||||
# create a working ansible-lint executable
|
# create a working ansible-lint executable
|
||||||
export PATH=$PATH:$PWD/src/ansiblelint
|
export PATH=$PATH:$PWD/src/ansiblelint
|
||||||
|
@ -82,7 +84,7 @@ buildPythonPackage rec {
|
||||||
"test_prerun_reqs_v2"
|
"test_prerun_reqs_v2"
|
||||||
];
|
];
|
||||||
|
|
||||||
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ansible ]}" ];
|
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ansible-base ]}" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/ansible-community/ansible-lint";
|
homepage = "https://github.com/ansible-community/ansible-lint";
|
||||||
|
|
|
@ -70,7 +70,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Radically simple IT automation";
|
description = "Radically simple IT automation";
|
||||||
homepage = "Radically simple IT automation";
|
homepage = "http://www.ansible.com";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ hexa ];
|
maintainers = with maintainers; [ hexa ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue