From c42cfa1e91bf271913aaa055ab34b2416df5b2f8 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Fri, 27 Jan 2017 09:59:10 +0100 Subject: [PATCH] pythonPackages.ansible_2_1: init at 2.1.4.0 --- .../python-modules/ansible/2.1.nix | 50 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 1 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/ansible/2.1.nix diff --git a/pkgs/development/python-modules/ansible/2.1.nix b/pkgs/development/python-modules/ansible/2.1.nix new file mode 100644 index 00000000000..8d7598a90c9 --- /dev/null +++ b/pkgs/development/python-modules/ansible/2.1.nix @@ -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; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2c05c2954f2..8d54eef393a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 {