2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
mock,
|
2024-09-19 14:19:46 +00:00
|
|
|
pykerberos,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonOlder,
|
|
|
|
requests-credssp,
|
2024-06-05 15:53:02 +00:00
|
|
|
requests-ntlm,
|
2024-09-19 14:19:46 +00:00
|
|
|
requests,
|
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
xmltodict,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pywinrm";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.5.0";
|
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-VCjrHklK95VFRs1P8Vye8aMKdeBbJaOf1gbO8iIB6fE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2022-04-27 09:35:20 +00:00
|
|
|
requests
|
2024-01-25 14:12:00 +00:00
|
|
|
requests-ntlm
|
2022-04-27 09:35:20 +00:00
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
optional-dependencies = {
|
|
|
|
credssp = [ requests-credssp ];
|
|
|
|
kerberos = [ pykerberos ];
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
2024-09-19 14:19:46 +00:00
|
|
|
] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "winrm" ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "winrm/tests/" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for Windows Remote Management";
|
|
|
|
homepage = "https://github.com/diyan/pywinrm";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/diyan/pywinrm/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
elasticdog
|
|
|
|
kamadorueda
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|