2018-11-29 22:22:02 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, libxml2
|
2019-06-16 20:59:06 +01:00
|
|
|
, m2crypto, ply, pyyaml, six, pbr, pythonOlder, isPy37
|
2018-11-29 22:22:02 +00:00
|
|
|
, httpretty, lxml, mock, pytest, requests, decorator, unittest2
|
2017-08-07 16:23:48 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-01-01 10:49:50 +00:00
|
|
|
pname = "pywbem";
|
2020-08-29 12:41:51 +01:00
|
|
|
version = "1.0.2";
|
2017-08-07 16:23:48 +01:00
|
|
|
|
2018-11-29 22:22:02 +00:00
|
|
|
# Support added in master https://github.com/pywbem/pywbem/commit/b2f2f1a151a30355bbc6652dca69a7b30bfe941e awaiting release
|
|
|
|
disabled = isPy37;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-29 12:41:51 +01:00
|
|
|
sha256 = "66d8ec82d30f2b95d8b4bd51659429066c2879d3f46292561f5fdbc7fed10f3d";
|
2017-08-07 16:23:48 +01:00
|
|
|
};
|
|
|
|
|
2018-11-29 22:22:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mock
|
|
|
|
pbr
|
|
|
|
ply
|
|
|
|
pyyaml
|
|
|
|
six
|
|
|
|
] ++ lib.optionals (pythonOlder "3.0") [ m2crypto ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
decorator
|
|
|
|
httpretty
|
|
|
|
libxml2
|
|
|
|
lxml
|
|
|
|
pytest
|
|
|
|
requests
|
|
|
|
unittest2
|
2017-09-06 16:19:12 +01:00
|
|
|
];
|
|
|
|
|
2018-11-29 22:22:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Uses deprecated library yamlordereddictloader
|
|
|
|
rm testsuite/test_client.py
|
2017-08-07 16:23:48 +01:00
|
|
|
|
2018-11-29 22:22:02 +00:00
|
|
|
# Wants `wbemcli` in PATH
|
|
|
|
rm testsuite/test_wbemcli.py
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2018-11-29 22:22:02 +00:00
|
|
|
# Disables tests that use testfixtures which is currently broken by nonbuilding zope_component
|
|
|
|
rm testsuite/{test_logging,test_recorder,test_wbemconnection_mock}.*
|
|
|
|
'';
|
2017-08-07 16:23:48 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
2018-11-29 22:22:02 +00:00
|
|
|
pytest testsuite/
|
2017-08-07 16:23:48 +01:00
|
|
|
'';
|
|
|
|
|
2018-11-29 22:22:02 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Support for the WBEM standard for systems management";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pywbem.github.io";
|
2018-11-29 22:22:02 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2017-08-07 16:23:48 +01:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|