ansible: move out of pythonPackages

ansible is not a library

Changed files
+67 -95
pkgs
development
python-modules
ansible
tools
admin
top-level
+11 -18
pkgs/development/python-modules/ansible/2.1.nix pkgs/tools/admin/ansible/2.1.nix
···
-
{ lib
+
{ stdenv
, fetchurl
-
, buildPythonPackage
-
, pycrypto
-
, paramiko
-
, jinja2
-
, pyyaml
-
, httplib2
-
, boto
-
, six
-
, netaddr
-
, dns
+
, pythonPackages
, windowsSupport ? false
-
, pywinrm ? null
}:
+
+
with pythonPackages;
let
jinja = jinja2.override rec {
···
dontPatchELF = true;
dontPatchShebangs = false;
-
propagatedBuildInputs = [ pycrypto paramiko jinja pyyaml httplib2
-
boto six netaddr dns ] ++ lib.optional windowsSupport pywinrm;
+
propagatedBuildInputs = [
+
pycrypto paramiko jinja pyyaml httplib2 boto six netaddr dns
+
] ++ stdenv.lib.optional windowsSupport pywinrm;
-
meta = {
+
meta = with stdenv.lib; {
homepage = http://www.ansible.com;
description = "A simple automation tool";
-
license = with lib.licenses; [ gpl3] ;
-
maintainers = with lib.maintainers; [
+
license = with licenses; [ gpl3] ;
+
maintainers = with maintainers; [
jgeerds
joamaki
];
-
platforms = with lib.platforms; linux ++ darwin;
+
platforms = with platforms; linux ++ darwin;
};
}
+11 -18
pkgs/development/python-modules/ansible/2.2.nix pkgs/tools/admin/ansible/2.2.nix
···
-
{ lib
+
{ stdenv
, fetchurl
-
, buildPythonPackage
-
, pycrypto
-
, paramiko
-
, jinja2
-
, pyyaml
-
, httplib2
-
, boto
-
, six
-
, netaddr
-
, dns
+
, pythonPackages
, windowsSupport ? false
-
, pywinrm ? null
}:
+
+
with pythonPackages;
let
# Shouldn't be needed anymore in next version
···
dontPatchELF = true;
dontPatchShebangs = false;
-
propagatedBuildInputs = [ pycrypto paramiko jinja pyyaml httplib2
-
boto six netaddr dns ] ++ lib.optional windowsSupport pywinrm;
+
propagatedBuildInputs = [
+
pycrypto paramiko jinja pyyaml httplib2 boto six netaddr dns
+
] ++ stdenv.lib.optional windowsSupport pywinrm;
-
meta = {
+
meta = with stdenv.lib; {
homepage = http://www.ansible.com;
description = "A simple automation tool";
-
license = with lib.licenses; [ gpl3] ;
-
maintainers = with lib.maintainers; [
+
license = with licenses; [ gpl3] ;
+
maintainers = with maintainers; [
jgeerds
joamaki
];
-
platforms = with lib.platforms; linux ++ darwin;
+
platforms = with platforms; linux ++ darwin;
};
}
-50
pkgs/development/python-modules/ansible/2.3.nix
···
-
{ lib
-
, fetchurl
-
, buildPythonPackage
-
, pycrypto
-
, paramiko
-
, jinja2
-
, pyyaml
-
, httplib2
-
, boto
-
, six
-
, netaddr
-
, dns
-
, windowsSupport ? false
-
, pywinrm ? null
-
}:
-
-
buildPythonPackage rec {
-
pname = "ansible";
-
version = "2.3.1.0";
-
name = "${pname}-${version}";
-
-
-
src = fetchurl {
-
url = "http://releases.ansible.com/ansible/${name}.tar.gz";
-
sha256 = "1xdr82fy8gahxh3586wm5k1bxksys7yl1f2n24shrk8gf99qyjyd";
-
};
-
-
prePatch = ''
-
sed -i "s,/usr/,$out," lib/ansible/constants.py
-
'';
-
-
doCheck = false;
-
dontStrip = true;
-
dontPatchELF = true;
-
dontPatchShebangs = false;
-
-
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;
-
};
-
}
+40
pkgs/tools/admin/ansible/2.3.nix
···
+
{ stdenv
+
, fetchurl
+
, pythonPackages
+
, windowsSupport ? false
+
}:
+
+
pythonPackages.buildPythonPackage rec {
+
pname = "ansible";
+
version = "2.3.1.0";
+
name = "${pname}-${version}";
+
+
src = fetchurl {
+
url = "http://releases.ansible.com/ansible/${name}.tar.gz";
+
sha256 = "1xdr82fy8gahxh3586wm5k1bxksys7yl1f2n24shrk8gf99qyjyd";
+
};
+
+
prePatch = ''
+
sed -i "s,/usr/,$out," lib/ansible/constants.py
+
'';
+
+
doCheck = false;
+
dontStrip = true;
+
dontPatchELF = true;
+
dontPatchShebangs = false;
+
+
propagatedBuildInputs = with pythonPackages; [
+
pycrypto paramiko jinja2 pyyaml httplib2 boto six netaddr dns
+
] ++ stdenv.lib.optional windowsSupport pywinrm;
+
+
meta = with stdenv.lib; {
+
homepage = http://www.ansible.com;
+
description = "A simple automation tool";
+
license = with licenses; [ gpl3] ;
+
maintainers = with maintainers; [
+
jgeerds
+
joamaki
+
];
+
platforms = with platforms; linux ++ darwin;
+
};
+
}
+5 -2
pkgs/top-level/all-packages.nix
···
augeas = callPackage ../tools/system/augeas { };
-
ansible = python2Packages.ansible2;
-
ansible2 = python2Packages.ansible2;
+
ansible_2_1 = callPackage ../tools/admin/ansible/2.1.nix {};
+
ansible_2_2 = callPackage ../tools/admin/ansible/2.2.nix {};
+
ansible_2_3 = callPackage ../tools/admin/ansible/2.3.nix {};
+
ansible = ansible_2_3;
+
ansible2 = ansible_2_3;
antlr = callPackage ../development/tools/parsing/antlr/2.7.7.nix { };
-7
pkgs/top-level/python-packages.nix
···
amqplib = callPackage ../development/python-modules/amqplib {};
-
ansible = self.ansible2;
-
ansible2 = self.ansible_2_3;
-
-
ansible_2_1 = callPackage ../development/python-modules/ansible/2.1.nix {};
-
ansible_2_2 = callPackage ../development/python-modules/ansible/2.2.nix {};
-
ansible_2_3 = callPackage ../development/python-modules/ansible/2.3.nix {};
-
apipkg = callPackage ../development/python-modules/apipkg {};
appdirs = callPackage ../development/python-modules/appdirs { };