blob: 6a71ae9e1d3eff21dc049cb9523a1af6cd5c7cb5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{ lib
, buildPythonPackage
, fetchPypi
, psutil
, pexpect
, python-daemon
, pyyaml
, six
, stdenv
, ansible
, pytest
, mock
}:
buildPythonPackage rec {
pname = "ansible-runner";
version = "1.4.4";
src = fetchPypi {
inherit pname version;
sha256 = "e6ccb7ccf9bab9c49a391db37e0d399ba0e73f969801ae35ff74020bfd4fc346";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [
ansible
psutil
pexpect
python-daemon
pyyaml
six
];
# test_process_isolation_settings is currently broken on Darwin Catalina
# https://github.com/ansible/ansible-runner/issues/413
checkPhase = ''
HOME=$TMPDIR pytest \
--ignore test/unit/test_runner.py \
-k "not prepare ${lib.optionalString stdenv.isDarwin "and not process_isolation_settings"}"
'';
meta = with lib; {
description = "Helps when interfacing with Ansible";
homepage = https://github.com/ansible/ansible-runner;
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
|