2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
ddt,
|
|
|
|
keystoneauth1,
|
|
|
|
oslo-i18n,
|
|
|
|
oslo-serialization,
|
|
|
|
oslo-utils,
|
|
|
|
pbr,
|
|
|
|
requests,
|
|
|
|
prettytable,
|
|
|
|
requests-mock,
|
|
|
|
simplejson,
|
|
|
|
stestr,
|
|
|
|
stevedore,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-cinderclient";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "9.5.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-G51xev+TytQgBF+2xS9jdqty8IX4GTEwiSAg7EbJNVU=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
simplejson
|
|
|
|
keystoneauth1
|
|
|
|
oslo-i18n
|
|
|
|
oslo-utils
|
|
|
|
pbr
|
|
|
|
prettytable
|
|
|
|
requests
|
|
|
|
stevedore
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
ddt
|
|
|
|
oslo-serialization
|
|
|
|
requests-mock
|
|
|
|
stestr
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
stestr run
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cinderclient" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OpenStack Block Storage API Client Library";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cinder";
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://github.com/openstack/python-cinderclient";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|