git.iko.soy/typeable/nixpkgs
on master help sign in
python ansible2: move to python-packages.nix
commitf2ac29648aff2048225324845e73be056f7e58b6 authorFrederik Rietdijk <fridh@fridh.nl> dateFri 11 Dec 2015, 11:25 (11 years ago) parent1416763
3 files changed+34−34
pkgs/tools/system/ansible/2.nix−33 pkgs/top-level/all-packages.nix+1−1 pkgs/top-level/python-packages.nix+33
pkgs/tools/system/ansible/2.nixdeleted−33
@@ -1,33 +0,0 @@
1−{ windowsSupport ? true, stdenv, fetchurl, pythonPackages, python }:
2−
3−pythonPackages.buildPythonPackage rec {
4− version = "v2.0.0_0.6.rc1";
5− name = "ansible-${version}";
6− namePrefix = "";
7−
8− src = fetchurl {
9− url = "http://releases.ansible.com/ansible/ansible-2.0.0-0.6.rc1.tar.gz";
10− sha256 = "0v7fqi7qg9lzvpsjlaw9rzas8n1cdsyp3y9jrqzjxs9nbknwcibd";
11− };
12−
13− prePatch = ''
14− sed -i "s,/usr/,$out," lib/ansible/constants.py
15− '';
16−
17− doCheck = false;
18− dontStrip = true;
19− dontPatchELF = true;
20− dontPatchShebangs = true;
21−
22− pythonPath = with pythonPackages; [
23− paramiko jinja2 pyyaml httplib2 boto six
24− ] ++ stdenv.lib.optional windowsSupport pywinrm;
25−
26− meta = with stdenv.lib; {
27− homepage = "http://www.ansible.com";
28− description = "A simple automation tool";
29− license = licenses.gpl3;
30− maintainers = [ maintainers.copumpkin ];
31− platforms = platforms.linux ++ [ "x86_64-darwin" ];
32− };
33−}
pkgs/top-level/all-packages.nix+1−1
@@ -5381,7 +5381,7 @@ let
53815381
53825382 ansible = pythonPackages.ansible;
53835383
5384− ansible2 = callPackage ../tools/system/ansible/2.nix { };
5384+ ansible2 = pythonPackages.ansible2;
53855385
53865386 antlr = callPackage ../development/tools/parsing/antlr/2.7.7.nix { };
53875387
pkgs/top-level/python-packages.nix+33
@@ -587,6 +587,39 @@ in modules // {
587587 platforms = with platforms; [ linux darwin ];
588588 };
589589 };
590+
591+ ansible2 = buildPythonPackage rec {
592+ version = "v2.0.0_0.6.rc1";
593+ name = "ansible-${version}";
594+
595+ src = pkgs.fetchurl {
596+ url = "http://releases.ansible.com/ansible/ansible-2.0.0-0.6.rc1.tar.gz";
597+ sha256 = "0v7fqi7qg9lzvpsjlaw9rzas8n1cdsyp3y9jrqzjxs9nbknwcibd";
598+ };
599+
600+ prePatch = ''
601+ sed -i "s,/usr/,$out," lib/ansible/constants.py
602+ '';
603+
604+ doCheck = false;
605+ dontStrip = true;
606+ dontPatchELF = true;
607+ dontPatchShebangs = true;
608+ windowsSupport = true;
609+
610+ propagatedBuildInputs = with self; [
611+ paramiko jinja2 pyyaml httplib2 boto six
612+ ] ++ optional windowsSupport pywinrm;
613+
614+ meta = with stdenv.lib; {
615+ homepage = "http://www.ansible.com";
616+ description = "A simple automation tool";
617+ license = with licenses; [ gpl3 ];
618+ maintainers = with maintainers; [ copumpkin ];
619+ platforms = with platforms; [ linux darwin ];
620+ };
621+ };
622+
590623 apipkg = buildPythonPackage rec {
591624 name = "apipkg-1.4";
592625