41 lines
963 B
Nix
41 lines
963 B
Nix
{ stdenv
|
|
, fetchurl
|
|
, pythonPackages
|
|
, windowsSupport ? false
|
|
}:
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
|
pname = "ansible";
|
|
version = "2.3.2.0";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://releases.ansible.com/ansible/${name}.tar.gz";
|
|
sha256 = "1sv8666vw6fi93jlgkwd4lxkfn75yqczfvk129zlh8ll4wjv8qq5";
|
|
};
|
|
|
|
prePatch = ''
|
|
sed -i "s,/usr/,$out," lib/ansible/constants.py
|
|
'';
|
|
|
|
doCheck = false;
|
|
dontStrip = true;
|
|
dontPatchELF = true;
|
|
dontPatchShebangs = false;
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
pycrypto paramiko jinja2 pyyaml httplib2 boto six netaddr dnspython
|
|
] ++ stdenv.lib.optional windowsSupport pywinrm;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.ansible.com;
|
|
description = "A simple automation tool";
|
|
license = with licenses; [ gpl3 ] ;
|
|
maintainers = with maintainers; [
|
|
jgeerds
|
|
joamaki
|
|
];
|
|
platforms = with platforms; linux ++ darwin;
|
|
};
|
|
}
|