Skip to content

Commit

Permalink
Merge pull request #122932 from mweinelt/ansible-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed May 14, 2021
2 parents 3e2e056 + f46205d commit cc2fc35
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions pkgs/development/python-modules/ansible-lint/default.nix
Expand Up @@ -2,8 +2,8 @@
, buildPythonPackage
, isPy27
, fetchPypi
, python
, ansible
, setuptools-scm
, ansible-base
, enrich
, flaky
, pyyaml
Expand All @@ -27,10 +27,12 @@ buildPythonPackage rec {
sha256 = "sha256-tnuWKEB66bwVuwu3H3mHG99ZP+/msGhMDMRL5fyQgD8=";
};

buildInputs = [ python ];
nativeBuildInputs = [
setuptools-scm
];

propagatedBuildInputs = [
ansible
ansible-base
enrich
flaky
pyyaml
Expand Down Expand Up @@ -65,7 +67,7 @@ buildPythonPackage rec {
preCheck = ''
# ansible wants to write to $HOME and crashes if it can't
export HOME=$(mktemp -d)
export PATH=$PATH:${lib.makeBinPath [ ansible ]}
export PATH=$PATH:${lib.makeBinPath [ ansible-base ]}
# create a working ansible-lint executable
export PATH=$PATH:$PWD/src/ansiblelint
Expand All @@ -82,7 +84,7 @@ buildPythonPackage rec {
"test_prerun_reqs_v2"
];

makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ansible ]}" ];
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ansible-base ]}" ];

meta = with lib; {
homepage = "https://github.com/ansible-community/ansible-lint";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/ansible/collections.nix
Expand Up @@ -70,7 +70,7 @@ buildPythonPackage rec {

meta = with lib; {
description = "Radically simple IT automation";
homepage = "Radically simple IT automation";
homepage = "http://www.ansible.com";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ hexa ];
};
Expand Down

0 comments on commit cc2fc35

Please sign in to comment.