2017-08-28 12:29:29 +02:00
|
|
|
{ stdenv
|
2017-01-27 09:58:43 +01:00
|
|
|
, fetchurl
|
2017-08-28 12:29:29 +02:00
|
|
|
, pythonPackages
|
2017-02-11 13:26:52 +01:00
|
|
|
, windowsSupport ? false
|
2017-01-27 09:58:43 +01:00
|
|
|
}:
|
|
|
|
|
2017-08-28 12:29:29 +02:00
|
|
|
with pythonPackages;
|
|
|
|
|
2017-02-03 09:54:12 +01:00
|
|
|
let
|
|
|
|
# Shouldn't be needed anymore in next version
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/22345#commitcomment-20718521
|
|
|
|
jinja = (jinja2.override rec {
|
|
|
|
pname = "Jinja2";
|
|
|
|
version = "2.8.1";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/J/Jinja2/${name}.tar.gz";
|
|
|
|
sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
in buildPythonPackage rec {
|
2017-01-27 09:58:43 +01:00
|
|
|
pname = "ansible";
|
|
|
|
version = "2.2.1.0";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://releases.ansible.com/ansible/${name}.tar.gz";
|
|
|
|
sha256 = "0gz9i30pdmkchi936ijy873k8di6fmf3v5rv551hxyf0hjkjx8b3";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i "s,/usr/,$out," lib/ansible/constants.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
dontStrip = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontPatchShebangs = false;
|
|
|
|
|
2017-08-28 12:29:29 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pycrypto paramiko jinja pyyaml httplib2 boto six netaddr dns
|
|
|
|
] ++ stdenv.lib.optional windowsSupport pywinrm;
|
2017-01-27 09:58:43 +01:00
|
|
|
|
2017-08-28 12:29:29 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.ansible.com;
|
2017-01-27 09:58:43 +01:00
|
|
|
description = "A simple automation tool";
|
2017-08-28 12:29:29 +02:00
|
|
|
license = with licenses; [ gpl3] ;
|
|
|
|
maintainers = with maintainers; [
|
2017-01-27 09:58:43 +01:00
|
|
|
jgeerds
|
|
|
|
joamaki
|
|
|
|
];
|
2017-08-28 12:29:29 +02:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2017-01-27 09:58:43 +01:00
|
|
|
};
|
2017-02-03 09:54:12 +01:00
|
|
|
}
|