2019-02-24 22:06:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, psutil
|
|
|
|
, pexpect
|
|
|
|
, python-daemon
|
|
|
|
, pyyaml
|
|
|
|
, six
|
2020-02-19 03:42:40 +00:00
|
|
|
, stdenv
|
2019-02-24 22:06:53 +00:00
|
|
|
, ansible
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ansible-runner";
|
2019-11-19 14:35:32 +00:00
|
|
|
version = "1.4.4";
|
2019-02-24 22:06:53 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-19 14:35:32 +00:00
|
|
|
sha256 = "e6ccb7ccf9bab9c49a391db37e0d399ba0e73f969801ae35ff74020bfd4fc346";
|
2019-02-24 22:06:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ansible
|
|
|
|
psutil
|
|
|
|
pexpect
|
|
|
|
python-daemon
|
|
|
|
pyyaml
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2020-02-19 03:42:40 +00:00
|
|
|
# test_process_isolation_settings is currently broken on Darwin Catalina
|
|
|
|
# https://github.com/ansible/ansible-runner/issues/413
|
2019-02-24 22:06:53 +00:00
|
|
|
checkPhase = ''
|
2020-02-19 03:42:40 +00:00
|
|
|
HOME=$TMPDIR pytest \
|
|
|
|
--ignore test/unit/test_runner.py \
|
|
|
|
-k "not prepare ${lib.optionalString stdenv.isDarwin "and not process_isolation_settings"}"
|
2019-02-24 22:06:53 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Helps when interfacing with Ansible";
|
|
|
|
homepage = https://github.com/ansible/ansible-runner;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|