diff options
| author | stuebinm <stuebinm@in.tum.de> | 2022-04-24 18:43:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-24 18:43:28 +0200 |
| commit | 92fe62e1de5b587ee05d81400d8701558065f814 (patch) | |
| tree | 2f978329eab91f04aa857a835baed4e412d7c4e4 /pkgs/development/python-modules/python-openstackclient | |
| parent | 1c9c4a8e807703e0414c01a1a05b45cef974e177 (diff) | |
| parent | a3c605936a1d4ac47c61c875cf63b3d9e0b4415d (diff) | |
Merge branch 'master' into nextcloud-secrets
Diffstat (limited to 'pkgs/development/python-modules/python-openstackclient')
| -rw-r--r-- | pkgs/development/python-modules/python-openstackclient/default.nix | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-openstackclient/default.nix b/pkgs/development/python-modules/python-openstackclient/default.nix new file mode 100644 index 000000000000..8c76861bcb86 --- /dev/null +++ b/pkgs/development/python-modules/python-openstackclient/default.nix @@ -0,0 +1,63 @@ +{ lib +, buildPythonPackage +, fetchPypi +, ddt +, installShellFiles +, openstackdocstheme +, osc-lib +, pbr +, python-cinderclient +, python-keystoneclient +, python-novaclient +, requests-mock +, sphinx +, stestr +}: + +buildPythonPackage rec { + pname = "python-openstackclient"; + version = "5.8.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-M0hS34iXuV8FgewS7ih96MepKJogihjwqLOHdwGf2YY="; + }; + + nativeBuildInputs = [ + installShellFiles + openstackdocstheme + sphinx + ]; + + 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 + ''; + + checkInputs = [ + 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; + }; +} |
