summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAaron Bull Schaefer <aaron@elasticdog.com>2017-05-26 15:56:48 -0700
committerAaron Bull Schaefer <aaron@elasticdog.com>2017-05-28 11:37:48 -0700
commitc5b1a9da4bdf600eb9c33e1565536b7f0ea0f72f (patch)
tree3ddbe6f9418be549bc37b70b0e52df125ed8b220 /pkgs
parent65587984e4576b07ffa31faa076fe016077579bb (diff)
downloadnixlib-c5b1a9da4bdf600eb9c33e1565536b7f0ea0f72f.tar
nixlib-c5b1a9da4bdf600eb9c33e1565536b7f0ea0f72f.tar.gz
nixlib-c5b1a9da4bdf600eb9c33e1565536b7f0ea0f72f.tar.bz2
nixlib-c5b1a9da4bdf600eb9c33e1565536b7f0ea0f72f.tar.lz
nixlib-c5b1a9da4bdf600eb9c33e1565536b7f0ea0f72f.tar.xz
nixlib-c5b1a9da4bdf600eb9c33e1565536b7f0ea0f72f.tar.zst
nixlib-c5b1a9da4bdf600eb9c33e1565536b7f0ea0f72f.zip
pythonPackages.pywinrm: 0.1.1 -> 0.2.2
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/pywinrm/default.nix32
-rw-r--r--pkgs/top-level/python-packages.nix20
2 files changed, 33 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/pywinrm/default.nix b/pkgs/development/python-modules/pywinrm/default.nix
new file mode 100644
index 000000000000..b2b5ba208016
--- /dev/null
+++ b/pkgs/development/python-modules/pywinrm/default.nix
@@ -0,0 +1,32 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, mock
+, pytest
+, requests
+, requests_ntlm
+, six
+, xmltodict
+}:
+
+buildPythonPackage rec {
+  pname = "pywinrm";
+  version = "0.2.2";
+  name = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "06xc0mbqf718vmsp0fq0rb64nql66l5w2x23bmqnzl6nzc0gfc1h";
+  };
+
+  checkInputs = [ mock pytest ];
+  propagatedBuildInputs = [ requests requests_ntlm six xmltodict ];
+
+  meta = with lib; {
+    description = "Python library for Windows Remote Management";
+    homepage = "http://github.com/diyan/pywinrm/";
+    license = licenses.mit;
+    maintainers = with maintainers; [ elasticdog ];
+    platforms = platforms.all;
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 451eafaf5df9..37466daace2f 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -21092,25 +21092,7 @@ in {
     };
   };
 
-  pywinrm = buildPythonPackage rec {
-    version = "0.1.1";
-    name = "pywinrm-${version}";
-
-    src = pkgs.fetchurl {
-      url = "https://github.com/diyan/pywinrm/archive/v${version}.tar.gz";
-      sha256 = "1pc0987f6q5sxcgm50a1k1xz2pk45ny9xxnyapaf60662rcavvfb";
-    };
-
-    propagatedBuildInputs = with self; [ isodate kerberos xmltodict ];
-
-    meta = {
-      homepage = "http://github.com/diyan/pywinrm/";
-      description = "Python library for Windows Remote Management";
-      license = licenses.mit;
-      # error: libgssapi_krb5.so: cannot open shared object file: No such file or directory
-      broken = true; #
-    };
-  };
+  pywinrm = callPackage ../development/python-modules/pywinrm { };
 
   PyXAPI = stdenv.mkDerivation rec {
     name = "PyXAPI-0.1";