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