summary refs log tree commit diff
path: root/pkgs/development/python-modules/ansible
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-01-27 09:58:43 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2017-01-27 10:15:31 +0100
commit46b1ea260a05d2d5fb01624c93d405daaf750b0c (patch)
tree63172cb85801fb9016f7b7c83dfca72e748ca34f /pkgs/development/python-modules/ansible
parent377b05ae38ef6c81d83e0c01446a69ea8fe287d2 (diff)
downloadnixpkgs-46b1ea260a05d2d5fb01624c93d405daaf750b0c.tar
nixpkgs-46b1ea260a05d2d5fb01624c93d405daaf750b0c.tar.gz
nixpkgs-46b1ea260a05d2d5fb01624c93d405daaf750b0c.tar.bz2
nixpkgs-46b1ea260a05d2d5fb01624c93d405daaf750b0c.tar.lz
nixpkgs-46b1ea260a05d2d5fb01624c93d405daaf750b0c.tar.xz
nixpkgs-46b1ea260a05d2d5fb01624c93d405daaf750b0c.tar.zst
nixpkgs-46b1ea260a05d2d5fb01624c93d405daaf750b0c.zip
pythonPackages.ansible2: move 2.2 to separate file, make default
`pythonPackages.ansible_2_2` is now the default `ansible`.
Diffstat (limited to 'pkgs/development/python-modules/ansible')
-rw-r--r--pkgs/development/python-modules/ansible/2.2.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ansible/2.2.nix b/pkgs/development/python-modules/ansible/2.2.nix
new file mode 100644
index 00000000000..22af2c01265
--- /dev/null
+++ b/pkgs/development/python-modules/ansible/2.2.nix
@@ -0,0 +1,50 @@
+{ lib
+, fetchurl
+, buildPythonPackage
+, pycrypto
+, paramiko
+, jinja2
+, pyyaml
+, httplib2
+, boto
+, six
+, netaddr
+, dns
+, pywinrm
+}:
+
+buildPythonPackage rec {
+  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;
+  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