git.iko.soy/typeable/nixpkgs
on master help sign in
python ansible: move to python-packages.nix
commit14167636fc6e3501cc27f2d25f9fcd4288f129ab authorFrederik Rietdijk <fridh@fridh.nl> dateFri 11 Dec 2015, 11:24 (11 years ago) parenta82fd17
3 files changed+32−34
pkgs/tools/system/ansible/default.nix−33 pkgs/top-level/all-packages.nix+1−1 pkgs/top-level/python-packages.nix+31
pkgs/tools/system/ansible/default.nixdeleted−33
@@ -1,33 +0,0 @@
1−{ windowsSupport ? true, stdenv, fetchurl, pythonPackages, python }:
2−
3−pythonPackages.buildPythonPackage rec {
4− version = "1.9.4";
5− name = "ansible-${version}";
6− namePrefix = "";
7−
8− src = fetchurl {
9− url = "https://releases.ansible.com/ansible/${name}.tar.gz";
10− sha256 = "1qvgzb66nlyc2ncmgmqhzdk0x0p2px09967p1yypf5czwjn2yb4p";
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.joamaki ];
31− platforms = platforms.linux ++ [ "x86_64-darwin" ];
32− };
33−}
pkgs/top-level/all-packages.nix+1−1
@@ -5379,7 +5379,7 @@ let
53795379
53805380 augeas = callPackage ../tools/system/augeas { };
53815381
5382− ansible = callPackage ../tools/system/ansible { };
5382+ ansible = pythonPackages.ansible;
53835383
53845384 ansible2 = callPackage ../tools/system/ansible/2.nix { };
53855385
pkgs/top-level/python-packages.nix+31
@@ -556,6 +556,37 @@ in modules // {
556556 };
557557 };
558558
559+ ansible = buildPythonPackage rec {
560+ version = "1.9.4";
561+ name = "ansible-${version}";
562+
563+ src = pkgs.fetchurl {
564+ url = "https://releases.ansible.com/ansible/${name}.tar.gz";
565+ sha256 = "1qvgzb66nlyc2ncmgmqhzdk0x0p2px09967p1yypf5czwjn2yb4p";
566+ };
567+
568+ prePatch = ''
569+ sed -i "s,/usr/,$out," lib/ansible/constants.py
570+ '';
571+
572+ doCheck = false;
573+ dontStrip = true;
574+ dontPatchELF = true;
575+ dontPatchShebangs = true;
576+ windowsSupport = true;
577+
578+ propagatedBuildInputs = with self; [
579+ paramiko jinja2 pyyaml httplib2 boto six
580+ ] ++ optional windowsSupport pywinrm;
581+
582+ meta = {
583+ homepage = "http://www.ansible.com";
584+ description = "A simple automation tool";
585+ license = with licenses; [ gpl3] ;
586+ maintainers = with maintainers; [ joamaki ];
587+ platforms = with platforms; [ linux darwin ];
588+ };
589+ };
559590 apipkg = buildPythonPackage rec {
560591 name = "apipkg-1.4";
561592