2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ddt
|
|
|
|
, iso8601
|
|
|
|
, keystoneauth1
|
|
|
|
, openssl
|
|
|
|
, oslo-i18n
|
|
|
|
, oslo-serialization
|
|
|
|
, pbr
|
|
|
|
, prettytable
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
2021-09-18 10:52:07 +00:00
|
|
|
, requests-mock
|
|
|
|
, stestr
|
|
|
|
, testscenarios
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-novaclient";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "18.1.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-09 14:08:57 +00:00
|
|
|
hash = "sha256-eCBVnRZfGk2BDn2nyV+IQl2L5JX20aPG9CA7isGH4lQ=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
iso8601
|
|
|
|
keystoneauth1
|
|
|
|
oslo-i18n
|
|
|
|
oslo-serialization
|
|
|
|
pbr
|
|
|
|
prettytable
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
ddt
|
|
|
|
openssl
|
|
|
|
requests-mock
|
|
|
|
stestr
|
|
|
|
testscenarios
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
stestr run -e <(echo "
|
|
|
|
novaclient.tests.unit.test_shell.ShellTest.test_osprofiler
|
|
|
|
novaclient.tests.unit.test_shell.ShellTestKeystoneV3.test_osprofiler
|
|
|
|
")
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "novaclient" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Client library for OpenStack Compute API";
|
|
|
|
homepage = "https://github.com/openstack/python-novaclient";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|