openstackclient-full: init
Goal of this package is to package OpenStack client with all available OpenStack CLI plugins in NixOS. See https://github.com/openstack/python-openstackclient/blob/master/doc/source/contributor/plugins.rst
This commit is contained in:
@@ -6,8 +6,13 @@
|
||||
openstackdocstheme,
|
||||
osc-lib,
|
||||
pbr,
|
||||
python-barbicanclient,
|
||||
python-cinderclient,
|
||||
python-designateclient,
|
||||
python-heatclient,
|
||||
python-ironicclient,
|
||||
python-keystoneclient,
|
||||
python-manilaclient,
|
||||
python-novaclient,
|
||||
requests-mock,
|
||||
setuptools,
|
||||
@@ -45,8 +50,8 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [
|
||||
ddt
|
||||
stestr
|
||||
requests-mock
|
||||
stestr
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
@@ -57,6 +62,17 @@ 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
|
||||
];
|
||||
};
|
||||
|
||||
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