@@ -923,42 +923,10 @@ in {
923923 };
924924 };
925925
926− ansible2 = buildPythonPackage rec {
927− version = "2.2.0.0";
928− name = "ansible-${version}";
929− disabled = isPy3k;
930−
931− src = pkgs.fetchurl {
932− url = "http://releases.ansible.com/ansible/${name}.tar.gz";
933− sha256 = "11l5814inr44ammp0sh304rqx2382fr629c0pbwf0k1rjg99iwfr";
934− };
935−
936− prePatch = ''
937− sed -i "s,/usr/,$out," lib/ansible/constants.py
938− '';
926+ ansible = self.ansible2;
927+ ansible2 = self.ansible_2_2;
939928
940− doCheck = false;
941− dontStrip = true;
942− dontPatchELF = true;
943− dontPatchShebangs = true;
944− windowsSupport = true;
945−
946− propagatedBuildInputs = with self; [
947− pycrypto paramiko jinja2 pyyaml httplib2 boto six
948− netaddr dns
949− ] ++ optional windowsSupport pywinrm;
950−
951− meta = with stdenv.lib; {
952− homepage = "http://www.ansible.com";
953− description = "A simple automation tool";
954− license = with licenses; [ gpl3 ];
955− maintainers = with maintainers; [
956− copumpkin
957− jgeerds
958− ];
959− platforms = with platforms; linux ++ darwin;
960− };
961− };
929+ ansible_2_2 = callPackage ../development/python-modules/ansible/2.2.nix {};
962930
963931 apipkg = buildPythonPackage rec {
964932 name = "apipkg-1.4";