Merge pull request #330474 from anthonyroussel/openstack-full
openstackclient-full: init
This commit is contained in:
@@ -6,14 +6,21 @@
|
||||
openstackdocstheme,
|
||||
osc-lib,
|
||||
pbr,
|
||||
python-barbicanclient,
|
||||
python-cinderclient,
|
||||
python-designateclient,
|
||||
python-heatclient,
|
||||
python-ironicclient,
|
||||
python-keystoneclient,
|
||||
python-manilaclient,
|
||||
python-novaclient,
|
||||
python-openstackclient,
|
||||
requests-mock,
|
||||
setuptools,
|
||||
sphinxHook,
|
||||
sphinxcontrib-apidoc,
|
||||
stestr,
|
||||
testers,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -45,8 +52,8 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [
|
||||
ddt
|
||||
stestr
|
||||
requests-mock
|
||||
stestr
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
@@ -57,6 +64,23 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "openstackclient" ];
|
||||
|
||||
passthru = {
|
||||
optional-dependencies = {
|
||||
# See https://github.com/openstack/python-openstackclient/blob/master/doc/source/contributor/plugins.rst
|
||||
cli-plugins = [
|
||||
python-barbicanclient
|
||||
python-designateclient
|
||||
python-heatclient
|
||||
python-ironicclient
|
||||
python-manilaclient
|
||||
];
|
||||
};
|
||||
tests.version = testers.testVersion {
|
||||
package = python-openstackclient;
|
||||
command = "openstack --version";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "OpenStack Command-line Client";
|
||||
mainProgram = "openstack";
|
||||
|
||||
@@ -23337,6 +23337,9 @@ with pkgs;
|
||||
openslp = callPackage ../development/libraries/openslp { };
|
||||
|
||||
openstackclient = with python311Packages; toPythonApplication python-openstackclient;
|
||||
openstackclient-full = openstackclient.overridePythonAttrs (oldAttrs: {
|
||||
dependencies = oldAttrs.dependencies ++ oldAttrs.passthru.optional-dependencies.cli-plugins;
|
||||
});
|
||||
barbicanclient = with python311Packages; toPythonApplication python-barbicanclient;
|
||||
glanceclient = with python311Packages; toPythonApplication python-glanceclient;
|
||||
heatclient = with python311Packages; toPythonApplication python-heatclient;
|
||||
|
||||
Reference in New Issue
Block a user