2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ddt
|
2022-02-10 20:34:41 +00:00
|
|
|
, installShellFiles
|
|
|
|
, openstackdocstheme
|
2021-09-18 10:52:07 +00:00
|
|
|
, osc-lib
|
|
|
|
, pbr
|
|
|
|
, python-cinderclient
|
|
|
|
, python-keystoneclient
|
|
|
|
, python-novaclient
|
|
|
|
, requests-mock
|
2022-02-10 20:34:41 +00:00
|
|
|
, sphinx
|
2024-02-29 20:09:43 +00:00
|
|
|
, sphinxcontrib-apidoc
|
2021-09-18 10:52:07 +00:00
|
|
|
, stestr
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-openstackclient";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "6.5.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-EvwZNH9rGb/iw28Rx6GEH0FaLufxi5WUE8ISGZe4SVE=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
openstackdocstheme
|
|
|
|
sphinx
|
2024-02-29 20:09:43 +00:00
|
|
|
sphinxcontrib-apidoc
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
osc-lib
|
|
|
|
pbr
|
|
|
|
python-cinderclient
|
|
|
|
python-keystoneclient
|
|
|
|
python-novaclient
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
postInstall = ''
|
|
|
|
sphinx-build -a -E -d doc/build/doctrees -b man doc/source doc/build/man
|
|
|
|
installManPage doc/build/man/openstack.1
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|