2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ddt
|
|
|
|
, osc-lib
|
|
|
|
, pbr
|
|
|
|
, python-cinderclient
|
|
|
|
, python-keystoneclient
|
|
|
|
, python-novaclient
|
|
|
|
, requests-mock
|
|
|
|
, stestr
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-openstackclient";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "5.7.0";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "c65e3d51018f193cce2daf3d0fd69daa36003bdb2b85df6b07b973e4c39e2f92";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
osc-lib
|
|
|
|
pbr
|
|
|
|
python-cinderclient
|
|
|
|
python-keystoneclient
|
|
|
|
python-novaclient
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
ddt
|
|
|
|
stestr
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
stestr run
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "openstackclient" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OpenStack Command-line Client";
|
|
|
|
homepage = "https://github.com/openstack/python-openstackclient";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|