git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #8349 from berdario/ansible-win

Add support for Windows in ansible

commitff3972b217132a1e5cbf13d576ba65d500e3fa2b authorlethalman <lucabru@src.gnome.org> dateWed 17 Jun 2015, 16:09 (11 years ago) parentf93d84232616ae
2 files changed+37−2
pkgs/tools/system/ansible/default.nix+2−2 pkgs/top-level/python-packages.nix+35
pkgs/tools/system/ansible/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pythonPackages, python }:
1+{ windowsSupport ? true, stdenv, fetchurl, pythonPackages, python }:
22
33pythonPackages.buildPythonPackage rec {
44 version = "1.9.1";
@@ -21,7 +21,7 @@ pythonPackages.buildPythonPackage rec {
2121
2222 propagatedBuildInputs = with pythonPackages; [
2323 paramiko jinja2 pyyaml httplib2 boto six
24− ];
24+ ] ++ stdenv.lib.optional windowsSupport pywinrm;
2525
2626 postFixup = ''
2727 wrapPythonProgramsIn $out/bin "$out $pythonPath"
pkgs/top-level/python-packages.nix+35
@@ -10594,6 +10594,24 @@ let
1059410594 };
1059510595 };
1059610596
10597+ pywinrm = buildPythonPackage (rec {
10598+ name = "pywinrm";
10599+
10600+ src = pkgs.fetchgit {
10601+ url = https://github.com/diyan/pywinrm.git;
10602+ rev = "c9ce62d500007561ab31a8d0a5d417e779fb69d9";
10603+ sha256 = "0n0qlcgin2g5lpby07qbdlnpq5v2qc2yns9zc4zm5prwh2mhs5za";
10604+ };
10605+
10606+ propagatedBuildInputs = with self; [ xmltodict isodate ];
10607+
10608+ meta = {
10609+ homepage = "http://github.com/diyan/pywinrm/";
10610+ description = "Python library for Windows Remote Management";
10611+ license = licenses.mit;
10612+ };
10613+ });
10614+
1059710615
1059810616 pyxattr = buildPythonPackage (rec {
1059910617 name = "pyxattr-0.5.1";
@@ -13537,6 +13555,23 @@ let
1353713555 };
1353813556 });
1353913557
13558+ xmltodict = buildPythonPackage (rec {
13559+ name = "xmltodict-0.9.2";
13560+
13561+ src = pkgs.fetchurl {
13562+ url = "http://pypi.python.org/packages/source/x/xmltodict/${name}.tar.gz";
13563+ sha256 = "00crqnjh1kbvcgfnn3b8c7vq30lf4ykkxp1xf3pf7mswr5l1wp97";
13564+ };
13565+
13566+ buildInputs = with self; [ coverage nose ];
13567+
13568+ meta = {
13569+ description = "Makes working with XML feel like you are working with JSON";
13570+ homepage = https://github.com/martinblech/xmltodict;
13571+ license = licenses.mit;
13572+ };
13573+ });
13574+
1354013575 youtube-dl = callPackage ../tools/misc/youtube-dl {
1354113576 # Release versions don't need pandoc because the formatted man page
1354213577 # is included in the tarball.