depot/third_party/nixpkgs/pkgs/development/python-modules/python-openstackclient/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

67 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, ddt
, installShellFiles
, openstackdocstheme
, osc-lib
, pbr
, python-cinderclient
, python-keystoneclient
, python-novaclient
, requests-mock
, sphinx
, sphinxcontrib-apidoc
, stestr
}:
buildPythonPackage rec {
pname = "python-openstackclient";
version = "6.6.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-u+8e00gpxBBSsuyiZIDinKH3K+BY0UMNpTQexExPKVw=";
};
nativeBuildInputs = [
installShellFiles
openstackdocstheme
sphinx
sphinxcontrib-apidoc
];
propagatedBuildInputs = [
osc-lib
pbr
python-cinderclient
python-keystoneclient
python-novaclient
];
postInstall = ''
sphinx-build -a -E -d doc/build/doctrees -b man doc/source doc/build/man
installManPage doc/build/man/openstack.1
'';
nativeCheckInputs = [
ddt
stestr
requests-mock
];
checkPhase = ''
stestr run
'';
pythonImportsCheck = [ "openstackclient" ];
meta = with lib; {
description = "OpenStack Command-line Client";
mainProgram = "openstack";
homepage = "https://github.com/openstack/python-openstackclient";
license = licenses.asl20;
maintainers = teams.openstack.members;
};
}