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:
Anthony ROUSSEL
2024-07-28 22:51:22 +02:00
parent 64a4b158bd
commit b5fc3a09e1
2 changed files with 20 additions and 1 deletions
@@ -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";
+3
View File
@@ -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;