git.iko.soy/typeable/nixpkgs
on master help sign in
Add (optional, but opted in by default) support for Windows in ansible
commit99912bbf0e082cac9edbb8074c6b962057b43d3b authorDario Bertini <dario.bertini@nccgroup.trust> dateMon 15 Jun 2015, 19:24 (11 years ago) parentf1d465f
2 files changed+31−2
pkgs/tools/system/ansible/default.nix+2−2 pkgs/top-level/python-packages.nix+29
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+29
@@ -10508,6 +10508,18 @@ let
1050810508 };
1050910509 };
1051010510
10511+ pywinrm = buildPythonPackage (rec {
10512+ name = "pywinrm";
10513+
10514+ src = pkgs.fetchgit {
10515+ url = https://github.com/diyan/pywinrm.git;
10516+ rev = "c9ce62d500007561ab31a8d0a5d417e779fb69d9";
10517+ sha256 = "0n0qlcgin2g5lpby07qbdlnpq5v2qc2yns9zc4zm5prwh2mhs5za";
10518+ };
10519+
10520+ propagatedBuildInputs = with self; [ xmltodict isodate ];
10521+ });
10522+
1051110523
1051210524 pyxattr = buildPythonPackage (rec {
1051310525 name = "pyxattr-0.5.1";
@@ -13451,6 +13463,23 @@ let
1345113463 };
1345213464 });
1345313465
13466+ xmltodict = buildPythonPackage (rec {
13467+ name = "xmltodict-0.9.2";
13468+
13469+ src = pkgs.fetchurl {
13470+ url = "http://pypi.python.org/packages/source/x/xmltodict/${name}.tar.gz";
13471+ sha256 = "00crqnjh1kbvcgfnn3b8c7vq30lf4ykkxp1xf3pf7mswr5l1wp97";
13472+ };
13473+
13474+ buildInputs = with self; [ coverage nose ];
13475+
13476+ meta = {
13477+ description = "Makes working with XML feel like you are working with JSON";
13478+ homepage = https://github.com/martinblech/xmltodict;
13479+ license = licenses.mit;
13480+ };
13481+ });
13482+
1345413483 zbase32 = buildPythonPackage (rec {
1345513484 name = "zbase32-1.1.2";
1345613485