From 01a6eec3a23e6c6ff8b18c1dee03de0ef408ac75 Mon Sep 17 00:00:00 2001 From: Angus Trau Date: Sun, 15 Aug 2021 21:00:32 +1000 Subject: [PATCH] python3Packages.python-keystoneclient: init at 4.2.0 --- .../python-keystoneclient/default.nix | 51 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/python-keystoneclient/default.nix diff --git a/pkgs/development/python-modules/python-keystoneclient/default.nix b/pkgs/development/python-modules/python-keystoneclient/default.nix new file mode 100644 index 000000000000..d91a3a9d3139 --- /dev/null +++ b/pkgs/development/python-modules/python-keystoneclient/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonPackage +, fetchPypi +, keystoneauth1 +, openssl +, oslo-config +, oslo-serialization +, pbr +, requests-mock +, stestr +, testresources +, testscenarios +}: + +buildPythonPackage rec { + pname = "python-keystoneclient"; + version = "4.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "12jsiw82x2zcn8sf78xisf85kr28gl3jqj46a0wxx59v91p44j02"; + }; + + propagatedBuildInputs = [ + keystoneauth1 + oslo-config + oslo-serialization + pbr + ]; + + checkInputs = [ + openssl + requests-mock + stestr + testresources + testscenarios + ]; + + checkPhase = '' + stestr run + ''; + + pythonImportsCheck = [ "keystoneclient" ]; + + meta = with lib; { + description = "Client Library for OpenStack Identity"; + homepage = "https://github.com/openstack/python-keystoneclient"; + license = licenses.asl20; + maintainers = teams.openstack.members; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c0310e70c373..e22f956268cf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5510,6 +5510,8 @@ in { python-juicenet = callPackage ../development/python-modules/python-juicenet { }; + python-keystoneclient = callPackage ../development/python-modules/python-keystoneclient { }; + python-lsp-black = callPackage ../development/python-modules/python-lsp-black { }; python-openems = callPackage ../development/python-modules/python-openems { };