Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 55 lines 1.1 kB view raw
1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, pycrypto 5, paramiko 6, jinja2 7, pyyaml 8, httplib2 9, boto 10, six 11, netaddr 12, dnspython 13, jmespath 14, dopy 15, windowsSupport ? false 16, pywinrm 17}: 18 19buildPythonPackage rec { 20 pname = "ansible"; 21 version = "2.8.4"; 22 23 src = fetchFromGitHub { 24 owner = "ansible"; 25 repo = "ansible"; 26 rev = "v${version}"; 27 sha256 = "1fp7zz8awfv70nn8i6x0ggx4472377hm7787x16qv2kz4nb069ki"; 28 }; 29 30 prePatch = '' 31 sed -i "s,/usr/,$out," lib/ansible/constants.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 boto 42 six netaddr dnspython jmespath dopy 43 ] ++ lib.optional windowsSupport pywinrm; 44 45 # dificult to test 46 doCheck = false; 47 48 meta = with lib; { 49 homepage = http://www.ansible.com; 50 description = "Radically simple IT automation"; 51 license = [ licenses.gpl3 ] ; 52 maintainers = with maintainers; [ joamaki costrouc ]; 53 platforms = platforms.linux ++ platforms.darwin; 54 }; 55}