nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, kerberos
6, mock
7, pytestCheckHook
8, requests
9, requests_ntlm
10, six
11, xmltodict
12}:
13
14buildPythonPackage rec {
15 pname = "pywinrm";
16 version = "0.4.3";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-mVZ0v1rGSyViycVlQEcxCeUw02veEMJi1aUpYSGtVWU=";
24 };
25
26 propagatedBuildInputs = [
27 requests
28 requests_ntlm
29 six
30 kerberos
31 xmltodict
32 ];
33
34 checkInputs = [
35 mock
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [
40 "winrm"
41 ];
42
43 pytestFlagsArray = [
44 "winrm/tests/"
45 ];
46
47 meta = with lib; {
48 description = "Python library for Windows Remote Management";
49 homepage = "https://github.com/diyan/pywinrm";
50 license = licenses.mit;
51 maintainers = with maintainers; [ elasticdog kamadorueda ];
52 };
53}