about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pywinrm/default.nix
blob: 40e8c70ba83b5525b6fd84edeb258dc8a5c8fca6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, mock
, pytestCheckHook
, requests
, requests_ntlm
, six
, xmltodict
}:

buildPythonPackage rec {
  pname = "pywinrm";
  version = "0.4.3";
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-mVZ0v1rGSyViycVlQEcxCeUw02veEMJi1aUpYSGtVWU=";
  };

  propagatedBuildInputs = [
    requests
    requests_ntlm
    six
    xmltodict
  ];

  nativeCheckInputs = [
    mock
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "winrm"
  ];

  pytestFlagsArray = [
    "winrm/tests/"
  ];

  meta = with lib; {
    description = "Python library for Windows Remote Management";
    homepage = "https://github.com/diyan/pywinrm";
    license = licenses.mit;
    maintainers = with maintainers; [ elasticdog kamadorueda ];
  };
}