From f2ac29648aff2048225324845e73be056f7e58b6 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Fri, 11 Dec 2015 11:25:08 +0100 Subject: [PATCH] python ansible2: move to python-packages.nix --- pkgs/tools/system/ansible/2.nix | 33 ------------------------------ pkgs/top-level/all-packages.nix | 2 +- pkgs/top-level/python-packages.nix | 33 ++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 pkgs/tools/system/ansible/2.nix diff --git a/pkgs/tools/system/ansible/2.nix b/pkgs/tools/system/ansible/2.nix deleted file mode 100644 index 21469e645bb7..000000000000 --- a/pkgs/tools/system/ansible/2.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ windowsSupport ? true, stdenv, fetchurl, pythonPackages, python }: - -pythonPackages.buildPythonPackage rec { - version = "v2.0.0_0.6.rc1"; - name = "ansible-${version}"; - namePrefix = ""; - - src = fetchurl { - url = "http://releases.ansible.com/ansible/ansible-2.0.0-0.6.rc1.tar.gz"; - sha256 = "0v7fqi7qg9lzvpsjlaw9rzas8n1cdsyp3y9jrqzjxs9nbknwcibd"; - }; - - prePatch = '' - sed -i "s,/usr/,$out," lib/ansible/constants.py - ''; - - doCheck = false; - dontStrip = true; - dontPatchELF = true; - dontPatchShebangs = true; - - pythonPath = with pythonPackages; [ - paramiko jinja2 pyyaml httplib2 boto six - ] ++ stdenv.lib.optional windowsSupport pywinrm; - - meta = with stdenv.lib; { - homepage = "http://www.ansible.com"; - description = "A simple automation tool"; - license = licenses.gpl3; - maintainers = [ maintainers.copumpkin ]; - platforms = platforms.linux ++ [ "x86_64-darwin" ]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9c9f89835a2b..cc40cbd5e9f8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5381,7 +5381,7 @@ let ansible = pythonPackages.ansible; - ansible2 = callPackage ../tools/system/ansible/2.nix { }; + ansible2 = pythonPackages.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 971e952ef475..bde8d29221c3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -587,6 +587,39 @@ in modules // { platforms = with platforms; [ linux darwin ]; }; }; + + ansible2 = buildPythonPackage rec { + version = "v2.0.0_0.6.rc1"; + name = "ansible-${version}"; + + src = pkgs.fetchurl { + url = "http://releases.ansible.com/ansible/ansible-2.0.0-0.6.rc1.tar.gz"; + sha256 = "0v7fqi7qg9lzvpsjlaw9rzas8n1cdsyp3y9jrqzjxs9nbknwcibd"; + }; + + prePatch = '' + sed -i "s,/usr/,$out," lib/ansible/constants.py + ''; + + doCheck = false; + dontStrip = true; + dontPatchELF = true; + dontPatchShebangs = true; + windowsSupport = true; + + propagatedBuildInputs = with self; [ + paramiko jinja2 pyyaml httplib2 boto six + ] ++ 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 ]; + platforms = with platforms; [ linux darwin ]; + }; + }; + apipkg = buildPythonPackage rec { name = "apipkg-1.4";