Merge pull request #26161 from elasticdog/pywinrm
pythonPackages.pywinrm: 0.1.1 -> 0.2.2
This commit is contained in:
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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user