at 22.05-pre 55 lines 1.2 kB view raw
1{ lib 2, fetchPypi 3, buildPythonPackage 4, pycrypto 5, paramiko 6, jinja2 7, pyyaml 8, httplib2 9, six 10, netaddr 11, dnspython 12, jmespath 13, dopy 14, ncclient 15, windowsSupport ? false 16, pywinrm 17}: 18 19buildPythonPackage rec { 20 pname = "ansible"; 21 version = "2.9.27"; 22 23 src = fetchPypi { 24 inherit pname version; 25 sha256 = "sha256-R5FZ5Qs72Qkg0GvFlBDDpR0/m+m04QKeEdHkotBwVzY="; 26 }; 27 28 prePatch = '' 29 # ansible-connection is wrapped, so make sure it's not passed 30 # through the python interpreter. 31 sed -i "s/\[python, /[/" lib/ansible/executor/task_executor.py 32 ''; 33 34 postInstall = '' 35 for m in docs/man/man1/*; do 36 install -vD $m -t $out/share/man/man1 37 done 38 ''; 39 40 propagatedBuildInputs = [ 41 pycrypto paramiko jinja2 pyyaml httplib2 42 six netaddr dnspython jmespath dopy ncclient 43 ] ++ lib.optional windowsSupport pywinrm; 44 45 # dificult to test 46 doCheck = false; 47 48 meta = with lib; { 49 homepage = "https://www.ansible.com"; 50 description = "Radically simple IT automation"; 51 license = [ licenses.gpl3 ] ; 52 maintainers = with maintainers; [ joamaki costrouc hexa ]; 53 platforms = platforms.linux ++ platforms.darwin; 54 }; 55}