summary refs log tree commit diff
path: root/pkgs/development/python-modules/ansible
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2019-02-24 16:52:48 -0500
committerChris Ostrouchov <chris.ostrouchov@gmail.com>2019-03-01 14:46:56 -0500
commit300ca8132b3012e370e2565fa67638baf0567ec9 (patch)
tree7753eef6f63f913fca6ea70f2080a7d9d5547a60 /pkgs/development/python-modules/ansible
parente48e6ca40a7d4c5ea842ecbca1b62a7e2bc0888d (diff)
downloadnixpkgs-300ca8132b3012e370e2565fa67638baf0567ec9.tar
nixpkgs-300ca8132b3012e370e2565fa67638baf0567ec9.tar.gz
nixpkgs-300ca8132b3012e370e2565fa67638baf0567ec9.tar.bz2
nixpkgs-300ca8132b3012e370e2565fa67638baf0567ec9.tar.lz
nixpkgs-300ca8132b3012e370e2565fa67638baf0567ec9.tar.xz
nixpkgs-300ca8132b3012e370e2565fa67638baf0567ec9.tar.zst
nixpkgs-300ca8132b3012e370e2565fa67638baf0567ec9.zip
pythonPackages.ansible: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/ansible')
-rw-r--r--pkgs/development/python-modules/ansible/default.nix53
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ansible/default.nix b/pkgs/development/python-modules/ansible/default.nix
new file mode 100644
index 00000000000..1daff95d3a8
--- /dev/null
+++ b/pkgs/development/python-modules/ansible/default.nix
@@ -0,0 +1,53 @@
+{ lib
+, fetchurl
+, buildPythonPackage
+, pycrypto
+, paramiko
+, jinja2
+, pyyaml
+, httplib2
+, boto
+, six
+, netaddr
+, dnspython
+, jmespath
+, dopy
+, windowsSupport ? false
+, pywinrm
+}:
+
+buildPythonPackage rec {
+  pname = "ansible";
+  version = "2.7.8";
+
+  src = fetchurl {
+    url = "https://releases.ansible.com/ansible/${pname}-${version}.tar.gz";
+    sha256 = "11yx7vd0mp5gkq428af141dwnrwf8f9cp3f65243qbs9icjxnrrx";
+  };
+
+  prePatch = ''
+    sed -i "s,/usr/,$out," lib/ansible/constants.py
+  '';
+
+  postInstall = ''
+    for m in docs/man/man1/*; do
+      install -vD $m -t $out/share/man/man1
+    done
+  '';
+
+  propagatedBuildInputs = [
+    pycrypto paramiko jinja2 pyyaml httplib2 boto
+    six netaddr dnspython jmespath dopy
+  ] ++ lib.optional windowsSupport pywinrm;
+
+  # dificult to test
+  doCheck = false;
+
+  meta = with lib; {
+    homepage = http://www.ansible.com;
+    description = "Radically simple IT automation";
+    license = [ licenses.gpl3 ] ;
+    maintainers = with maintainers; [ jgeerds joamaki costrouc ];
+    platforms = platforms.linux ++ platforms.darwin;
+  };
+}