From 7b4c9f880fc5deddee0f37eeb60a235c01261efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 11 Sep 2021 12:17:39 +0200 Subject: [PATCH] python39Packages.python-openstackclient: init at 5.6.0 --- .../python-openstackclient/default.nix | 49 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/python-openstackclient/default.nix 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..d538c01acc66 --- /dev/null +++ b/pkgs/development/python-modules/python-openstackclient/default.nix @@ -0,0 +1,49 @@ +{ lib +, buildPythonPackage +, fetchPypi +, ddt +, osc-lib +, pbr +, python-cinderclient +, python-keystoneclient +, python-novaclient +, requests-mock +, stestr +}: + +buildPythonPackage rec { + pname = "python-openstackclient"; + version = "5.6.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0abc6666378c5a7db83ec83515a8524fb6246a919236110169cc5c216ac997ea"; + }; + + propagatedBuildInputs = [ + osc-lib + pbr + python-cinderclient + python-keystoneclient + python-novaclient + ]; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cd69bf97e15e..7d5aa149708e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18206,6 +18206,8 @@ with pkgs; openslp = callPackage ../development/libraries/openslp {}; + openstackclient = with python3Packages; toPythonApplication python-openstackclient; + openvdb = callPackage ../development/libraries/openvdb {}; inherit (callPackages ../development/libraries/libressl { }) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e739ca473d6c..672eb46acf83 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7279,6 +7279,8 @@ in { python-opendata-transport = callPackage ../development/python-modules/python-opendata-transport { }; + python-openstackclient = callPackage ../development/python-modules/python-openstackclient { }; + python_openzwave = callPackage ../development/python-modules/python_openzwave { }; python-packer = callPackage ../development/python-modules/python-packer { };