1{ lib, buildPythonPackage, fetchPypi, libxml2
2, m2crypto, ply, pyyaml, six, pbr, pythonOlder, isPy37
3, nocasedict, nocaselist, yamlloader, requests-mock
4, httpretty, lxml, mock, pytest, requests, decorator, unittest2
5, FormEncode, testfixtures, pytz
6}:
7
8buildPythonPackage rec {
9 pname = "pywbem";
10 version = "1.1.3";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "2abb6443f4debae56af7abefadb9fa5b8af9b53fc9bcf67f6c01a78db1064300";
15 };
16
17 propagatedBuildInputs = [
18 mock
19 nocasedict
20 nocaselist
21 pbr
22 ply
23 pyyaml
24 six
25 yamlloader
26 ] ++ lib.optionals (pythonOlder "3.0") [ m2crypto ];
27
28 checkInputs = [
29 decorator
30 FormEncode
31 httpretty
32 libxml2
33 lxml
34 pytest
35 pytz
36 requests
37 requests-mock
38 testfixtures
39 unittest2
40 ];
41
42 meta = with lib; {
43 description = "Support for the WBEM standard for systems management";
44 homepage = "https://pywbem.github.io";
45 license = licenses.lgpl21Plus;
46 maintainers = with maintainers; [ peterhoeg ];
47 };
48}