summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ansible/legacy.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/ansible/legacy.nix')
-rw-r--r--pkgs/development/python-modules/ansible/legacy.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ansible/legacy.nix b/pkgs/development/python-modules/ansible/legacy.nix
new file mode 100644
index 000000000000..2779feffee87
--- /dev/null
+++ b/pkgs/development/python-modules/ansible/legacy.nix
@@ -0,0 +1,57 @@
+{ lib
+, fetchFromGitHub
+, buildPythonPackage
+, pycrypto
+, paramiko
+, jinja2
+, pyyaml
+, httplib2
+, six
+, netaddr
+, dnspython
+, jmespath
+, dopy
+, ncclient
+, windowsSupport ? false
+, pywinrm
+}:
+
+buildPythonPackage rec {
+ pname = "ansible";
+ version = "2.9.21";
+
+ src = fetchFromGitHub {
+ owner = "ansible";
+ repo = "ansible";
+ rev = "v${version}";
+ sha256 = "1pfiwq2wfw11vmxdq2yhk86hm5jljlrnphlzfjr01kwzfikkdp5m";
+ };
+
+ prePatch = ''
+ # ansible-connection is wrapped, so make sure it's not passed
+ # through the python interpreter.
+ sed -i "s/\[python, /[/" lib/ansible/executor/task_executor.py
+ '';
+
+ postInstall = ''
+ for m in docs/man/man1/*; do
+ install -vD $m -t $out/share/man/man1
+ done
+ '';
+
+ propagatedBuildInputs = [
+ pycrypto paramiko jinja2 pyyaml httplib2
+ six netaddr dnspython jmespath dopy ncclient
+ ] ++ 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; [ joamaki costrouc hexa ];
+ platforms = platforms.linux ++ platforms.darwin;
+ };
+}