Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / python-openstackclient / default.nix
blob9663fce022f172ab1c1207ef293eb1cb65c6915e
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , ddt
5 , installShellFiles
6 , openstackdocstheme
7 , osc-lib
8 , pbr
9 , python-cinderclient
10 , python-keystoneclient
11 , python-novaclient
12 , requests-mock
13 , sphinx
14 , sphinxcontrib-apidoc
15 , stestr
18 buildPythonPackage rec {
19   pname = "python-openstackclient";
20   version = "6.6.0";
21   format = "setuptools";
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-u+8e00gpxBBSsuyiZIDinKH3K+BY0UMNpTQexExPKVw=";
26   };
28   nativeBuildInputs = [
29     installShellFiles
30     openstackdocstheme
31     sphinx
32     sphinxcontrib-apidoc
33   ];
35   propagatedBuildInputs = [
36     osc-lib
37     pbr
38     python-cinderclient
39     python-keystoneclient
40     python-novaclient
41   ];
43   postInstall = ''
44     sphinx-build -a -E -d doc/build/doctrees -b man doc/source doc/build/man
45     installManPage doc/build/man/openstack.1
46   '';
48   nativeCheckInputs = [
49     ddt
50     stestr
51     requests-mock
52   ];
54   checkPhase = ''
55     stestr run
56   '';
58   pythonImportsCheck = [ "openstackclient" ];
60   meta = with lib; {
61     description = "OpenStack Command-line Client";
62     mainProgram = "openstack";
63     homepage = "https://github.com/openstack/python-openstackclient";
64     license = licenses.asl20;
65     maintainers = teams.openstack.members;
66   };