pythonPackages.ansible_2_1: init at 2.1.4.0

This commit is contained in:
Frederik Rietdijk 2017-01-27 09:59:10 +01:00
parent 46b1ea260a
commit c42cfa1e91
2 changed files with 51 additions and 0 deletions

View File

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

View File

@ -926,6 +926,7 @@ in {
ansible = self.ansible2;
ansible2 = self.ansible_2_2;
ansible_2_1 = callPackage ../development/python-modules/ansible/2.1.nix {};
ansible_2_2 = callPackage ../development/python-modules/ansible/2.2.nix {};
apipkg = buildPythonPackage rec {