3
0
Fork 0
forked from mirrors/nixpkgs

Add (optional, but opted in by default) support for Windows in ansible

This commit is contained in:
Dario Bertini 2015-06-15 19:24:02 +01:00
parent f1d465f429
commit 99912bbf0e
No known key found for this signature in database
GPG key ID: B002EFE5F9B7F7F4
2 changed files with 31 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pythonPackages, python }:
{ windowsSupport ? true, stdenv, fetchurl, pythonPackages, python }:
pythonPackages.buildPythonPackage rec {
version = "1.9.1";
@ -21,7 +21,7 @@ pythonPackages.buildPythonPackage rec {
propagatedBuildInputs = with pythonPackages; [
paramiko jinja2 pyyaml httplib2 boto six
];
] ++ stdenv.lib.optional windowsSupport pywinrm;
postFixup = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"

View file

@ -10508,6 +10508,18 @@ let
};
};
pywinrm = buildPythonPackage (rec {
name = "pywinrm";
src = pkgs.fetchgit {
url = https://github.com/diyan/pywinrm.git;
rev = "c9ce62d500007561ab31a8d0a5d417e779fb69d9";
sha256 = "0n0qlcgin2g5lpby07qbdlnpq5v2qc2yns9zc4zm5prwh2mhs5za";
};
propagatedBuildInputs = with self; [ xmltodict isodate ];
});
pyxattr = buildPythonPackage (rec {
name = "pyxattr-0.5.1";
@ -13451,6 +13463,23 @@ let
};
});
xmltodict = buildPythonPackage (rec {
name = "xmltodict-0.9.2";
src = pkgs.fetchurl {
url = "http://pypi.python.org/packages/source/x/xmltodict/${name}.tar.gz";
sha256 = "00crqnjh1kbvcgfnn3b8c7vq30lf4ykkxp1xf3pf7mswr5l1wp97";
};
buildInputs = with self; [ coverage nose ];
meta = {
description = "Makes working with XML feel like you are working with JSON";
homepage = https://github.com/martinblech/xmltodict;
license = licenses.mit;
};
});
zbase32 = buildPythonPackage (rec {
name = "zbase32-1.1.2";