Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 43 lines 794 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, psutil 5, pexpect 6, python-daemon 7, pyyaml 8, six 9, ansible 10, pytest 11, mock 12}: 13 14buildPythonPackage rec { 15 pname = "ansible-runner"; 16 version = "1.4.4"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "e6ccb7ccf9bab9c49a391db37e0d399ba0e73f969801ae35ff74020bfd4fc346"; 21 }; 22 23 checkInputs = [ pytest mock ]; 24 propagatedBuildInputs = [ 25 ansible 26 psutil 27 pexpect 28 python-daemon 29 pyyaml 30 six 31 ]; 32 33 checkPhase = '' 34 HOME=$(mktemp -d) pytest --ignore test/unit/test_runner.py -k "not test_prepare" 35 ''; 36 37 meta = with lib; { 38 description = "Helps when interfacing with Ansible"; 39 homepage = https://github.com/ansible/ansible-runner; 40 license = licenses.asl20; 41 maintainers = [ maintainers.costrouc ]; 42 }; 43}