24 buildPythonPackage rec {
25 pname = "ansible-runner";
27 format = "setuptools";
29 disabled = pythonOlder "3.8";
32 inherit pname version;
33 hash = "sha256-eaG9E02BPI6jdAWZxv2WGhFCXOd1fy/XJc9W1qGnI2w=";
38 name = "fix-tests.patch";
39 url = "https://github.com/ansible/ansible-runner/commit/0d522c90cfc1f305e118705a1b3335ccb9c1633d.patch";
40 hash = "sha256-eTnQkftvjK0YHU+ovotRVSuVlvaVeXp5SvYk1DPCg88=";
41 excludes = [ ".github/workflows/ci.yml" "tox.ini" ];
49 propagatedBuildInputs = [
56 ] ++ lib.optionals (pythonOlder "3.10") [
61 ansible-core # required to place ansible CLI onto the PATH in tests
72 export HOME=$(mktemp -d)
73 export PATH="$PATH:$out/bin";
74 # avoid coverage flags
79 # Requires network access
80 "test_callback_plugin_task_args_leak"
82 # Times out on slower hardware
83 "test_large_stdout_blob"
84 # Failed: DID NOT RAISE <class 'RuntimeError'>
85 "test_validate_pattern"
89 # These tests unset PATH and then run executables like `bash` (see https://github.com/ansible/ansible-runner/pull/918)
90 "test/integration/test_runner.py"
91 "test/unit/test_runner.py"
93 ++ lib.optionals stdenv.isDarwin [
94 # Integration tests on Darwin are not regularly passing in ansible-runner's own CI
96 # These tests write to `/tmp` which is not writable on Darwin
97 "test/unit/config/test__base.py"
100 pythonImportsCheck = [
105 description = "Helps when interfacing with Ansible";
106 homepage = "https://github.com/ansible/ansible-runner";
107 license = licenses.asl20;
108 maintainers = with maintainers; [ ];