2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
ddt,
|
|
|
|
openstackdocstheme,
|
|
|
|
osc-lib,
|
|
|
|
pbr,
|
2024-07-31 10:19:44 +00:00
|
|
|
python-barbicanclient,
|
2024-06-05 15:53:02 +00:00
|
|
|
python-cinderclient,
|
2024-07-31 10:19:44 +00:00
|
|
|
python-designateclient,
|
|
|
|
python-heatclient,
|
|
|
|
python-ironicclient,
|
2024-06-05 15:53:02 +00:00
|
|
|
python-keystoneclient,
|
2024-09-19 14:19:46 +00:00
|
|
|
python-magnumclient,
|
2024-07-31 10:19:44 +00:00
|
|
|
python-manilaclient,
|
2024-09-19 14:19:46 +00:00
|
|
|
python-mistralclient,
|
|
|
|
python-neutronclient,
|
2024-07-31 10:19:44 +00:00
|
|
|
python-openstackclient,
|
2024-09-19 14:19:46 +00:00
|
|
|
python-watcherclient,
|
|
|
|
python-zaqarclient,
|
|
|
|
python-zunclient,
|
2024-06-05 15:53:02 +00:00
|
|
|
requests-mock,
|
2024-09-19 14:19:46 +00:00
|
|
|
requests,
|
2024-07-31 10:19:44 +00:00
|
|
|
setuptools,
|
|
|
|
sphinxHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
sphinxcontrib-apidoc,
|
|
|
|
stestr,
|
2024-07-31 10:19:44 +00:00
|
|
|
testers,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-openstackclient";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "7.1.0";
|
2024-07-31 10:19:44 +00:00
|
|
|
pyproject = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-nv/CmcVpQiC65Fd3jmzZsjrqG8O/zQTjoE+NhjhaBVQ=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
build-system = [
|
2022-02-10 20:34:41 +00:00
|
|
|
openstackdocstheme
|
2024-07-31 10:19:44 +00:00
|
|
|
setuptools
|
|
|
|
sphinxHook
|
2024-02-29 20:09:43 +00:00
|
|
|
sphinxcontrib-apidoc
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
sphinxBuilders = [ "man" ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-09-18 10:52:07 +00:00
|
|
|
osc-lib
|
|
|
|
pbr
|
|
|
|
python-cinderclient
|
|
|
|
python-keystoneclient
|
2024-09-19 14:19:46 +00:00
|
|
|
requests
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
ddt
|
|
|
|
requests-mock
|
2024-07-31 10:19:44 +00:00
|
|
|
stestr
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2024-07-31 10:19:44 +00:00
|
|
|
runHook preCheck
|
2021-09-18 10:52:07 +00:00
|
|
|
stestr run
|
2024-07-31 10:19:44 +00:00
|
|
|
runHook postCheck
|
2021-09-18 10:52:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "openstackclient" ];
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
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
|
2024-09-19 14:19:46 +00:00
|
|
|
python-magnumclient
|
2024-07-31 10:19:44 +00:00
|
|
|
python-manilaclient
|
2024-09-19 14:19:46 +00:00
|
|
|
python-mistralclient
|
|
|
|
python-neutronclient
|
|
|
|
python-watcherclient
|
|
|
|
python-zaqarclient
|
|
|
|
python-zunclient
|
2024-07-31 10:19:44 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
tests.version = testers.testVersion {
|
|
|
|
package = python-openstackclient;
|
|
|
|
command = "openstack --version";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "OpenStack Command-line Client";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "openstack";
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://github.com/openstack/python-openstackclient";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|