python3Packages.ansible-lint: migrate to ansible 2.10...

...which is packaged as ansible-base.

❯ ./result/bin/ansible-lint --version
ansible-lint 5.0.8 using ansible 2.10.9
This commit is contained in:
Martin Weinelt 2021-05-14 03:00:55 +02:00
parent f846985b6a
commit 7d65aab9a0
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -3,7 +3,7 @@
, isPy27 , isPy27
, fetchPypi , fetchPypi
, setuptools-scm , setuptools-scm
, ansible , ansible-base
, enrich , enrich
, flaky , flaky
, pyyaml , pyyaml
@ -32,7 +32,7 @@ buildPythonPackage rec {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
ansible ansible-base
enrich enrich
flaky flaky
pyyaml pyyaml
@ -67,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
@ -84,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";