diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2017-01-27 09:58:43 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2017-01-27 10:15:31 +0100 |
commit | 46b1ea260a05d2d5fb01624c93d405daaf750b0c (patch) | |
tree | 63172cb85801fb9016f7b7c83dfca72e748ca34f /pkgs | |
parent | 377b05ae38ef6c81d83e0c01446a69ea8fe287d2 (diff) | |
download | nixlib-46b1ea260a05d2d5fb01624c93d405daaf750b0c.tar nixlib-46b1ea260a05d2d5fb01624c93d405daaf750b0c.tar.gz nixlib-46b1ea260a05d2d5fb01624c93d405daaf750b0c.tar.bz2 nixlib-46b1ea260a05d2d5fb01624c93d405daaf750b0c.tar.lz nixlib-46b1ea260a05d2d5fb01624c93d405daaf750b0c.tar.xz nixlib-46b1ea260a05d2d5fb01624c93d405daaf750b0c.tar.zst nixlib-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')
-rw-r--r-- | pkgs/development/python-modules/ansible/2.2.nix | 50 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 3 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 38 |
3 files changed, 54 insertions, 37 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 000000000000..22af2c012655 --- /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 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8a720045a8dd..1d4b427fa713 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6007,8 +6007,7 @@ with pkgs; augeas = callPackage ../tools/system/augeas { }; - ansible = python2Packages.ansible; - + ansible = python2Packages.ansible2; ansible2 = python2Packages.ansible2; antlr = callPackage ../development/tools/parsing/antlr/2.7.7.nix { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 532c681d4da0..2c05c2954f23 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -923,42 +923,10 @@ in { }; }; - ansible2 = buildPythonPackage rec { - version = "2.2.0.0"; - name = "ansible-${version}"; - disabled = isPy3k; - - src = pkgs.fetchurl { - url = "http://releases.ansible.com/ansible/${name}.tar.gz"; - sha256 = "11l5814inr44ammp0sh304rqx2382fr629c0pbwf0k1rjg99iwfr"; - }; - - prePatch = '' - sed -i "s,/usr/,$out," lib/ansible/constants.py - ''; + ansible = self.ansible2; + ansible2 = self.ansible_2_2; - doCheck = false; - dontStrip = true; - dontPatchELF = true; - dontPatchShebangs = true; - windowsSupport = true; - - propagatedBuildInputs = with self; [ - pycrypto paramiko jinja2 pyyaml httplib2 boto six - netaddr dns - ] ++ optional windowsSupport pywinrm; - - meta = with stdenv.lib; { - homepage = "http://www.ansible.com"; - description = "A simple automation tool"; - license = with licenses; [ gpl3 ]; - maintainers = with maintainers; [ - copumpkin - jgeerds - ]; - platforms = with platforms; linux ++ darwin; - }; - }; + ansible_2_2 = callPackage ../development/python-modules/ansible/2.2.nix {}; apipkg = buildPythonPackage rec { name = "apipkg-1.4"; |