Merge pull request #26161 from elasticdog/pywinrm
pythonPackages.pywinrm: 0.1.1 -> 0.2.2
This commit is contained in:
commit
c443fcfdec
37
pkgs/development/python-modules/ntlm-auth/default.nix
Normal file
37
pkgs/development/python-modules/ntlm-auth/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, mock
|
||||
, pytest
|
||||
, unittest2
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ntlm-auth";
|
||||
version = "1.0.3";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jborean93";
|
||||
repo = "ntlm-auth";
|
||||
rev = "v${version}";
|
||||
sha256 = "09f2g4ivfi9lh1kr30hlg0q4n2imnvmd79w83gza11q9nmhhiwpz";
|
||||
};
|
||||
|
||||
checkInputs = [ mock pytest unittest2 ];
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
# Functional tests require networking
|
||||
checkPhase = ''
|
||||
py.test --ignore=tests/functional/test_iis.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Calculates NTLM Authentication codes";
|
||||
homepage = https://github.com/jborean93/ntlm-auth;
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ elasticdog ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
32
pkgs/development/python-modules/pywinrm/default.nix
Normal file
32
pkgs/development/python-modules/pywinrm/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
30
pkgs/development/python-modules/requests_ntlm/default.nix
Normal file
30
pkgs/development/python-modules/requests_ntlm/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, ntlm-auth
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "requests_ntlm";
|
||||
version = "1.0.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0hb689p2jyb867c2wlq5mjkqxgc0jq6lxv3rmhw8rq9qangk3jjk";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ ntlm-auth requests ];
|
||||
|
||||
# Tests require networking
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "HTTP NTLM authentication support for python-requests";
|
||||
homepage = https://github.com/requests/requests-ntlm;
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ elasticdog ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -234,6 +234,8 @@ in {
|
||||
|
||||
nltk = callPackage ../development/python-modules/nltk.nix { };
|
||||
|
||||
ntlm-auth = callPackage ../development/python-modules/ntlm-auth { };
|
||||
|
||||
pitz = callPackage ../applications/misc/pitz { };
|
||||
|
||||
plantuml = callPackage ../tools/misc/plantuml { };
|
||||
@ -20931,25 +20933,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";
|
||||
@ -21212,6 +21196,8 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
requests_ntlm = callPackage ../development/python-modules/requests_ntlm { };
|
||||
|
||||
requests_oauthlib = callPackage ../development/python-modules/requests-oauthlib.nix { };
|
||||
|
||||
requests_toolbelt = buildPythonPackage rec {
|
||||
|
Loading…
Reference in New Issue
Block a user