From c4ff89b0002b9da9e7d97aeaa2774590f6922f41 Mon Sep 17 00:00:00 2001 From: Anthony ROUSSEL Date: Thu, 1 Aug 2024 23:21:20 +0200 Subject: [PATCH] python311Packages.python-zaqarclient: init at 2.7.0 https://opendev.org/openstack/python-zaqarclient https://docs.openstack.org/python-zaqarclient/latest/ --- .../python-openstackclient/default.nix | 2 + .../python-zaqarclient/default.nix | 82 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 3 files changed, 86 insertions(+) create mode 100644 pkgs/development/python-modules/python-zaqarclient/default.nix diff --git a/pkgs/development/python-modules/python-openstackclient/default.nix b/pkgs/development/python-modules/python-openstackclient/default.nix index 3a1a3a56ae95..d54b7d906d2f 100644 --- a/pkgs/development/python-modules/python-openstackclient/default.nix +++ b/pkgs/development/python-modules/python-openstackclient/default.nix @@ -17,6 +17,7 @@ python-mistralclient, python-neutronclient, python-openstackclient, + python-zaqarclient, requests-mock, requests, setuptools, @@ -79,6 +80,7 @@ buildPythonPackage rec { python-manilaclient python-mistralclient python-neutronclient + python-zaqarclient ]; }; tests.version = testers.testVersion { diff --git a/pkgs/development/python-modules/python-zaqarclient/default.nix b/pkgs/development/python-modules/python-zaqarclient/default.nix new file mode 100644 index 000000000000..ee8c99b6b642 --- /dev/null +++ b/pkgs/development/python-modules/python-zaqarclient/default.nix @@ -0,0 +1,82 @@ +{ + lib, + buildPythonPackage, + ddt, + fetchFromGitHub, + jsonschema, + keystoneauth1, + openstackdocstheme, + osc-lib, + oslo-i18n, + oslo-log, + oslo-utils, + pbr, + pythonOlder, + requests-mock, + requests, + setuptools, + sphinxHook, + stestr, + stevedore, +}: + +buildPythonPackage rec { + pname = "python-zaqarclient"; + version = "2.7.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "openstack"; + repo = "python-zaqarclient"; + rev = "refs/tags/${version}"; + hash = "sha256-WphTlqhrwxg5g88NH1W4b3uLAxLImnS34hDrlJjWeEU="; + }; + + env.PBR_VERSION = version; + + build-system = [ + pbr + setuptools + ]; + + nativeBuildInputs = [ + openstackdocstheme + sphinxHook + ]; + + sphinxBuilders = [ "man" ]; + + dependencies = [ + jsonschema + keystoneauth1 + osc-lib + oslo-i18n + oslo-log + oslo-utils + requests + stevedore + ]; + + nativeCheckInputs = [ + ddt + requests-mock + stestr + ]; + + checkPhase = '' + runHook preCheck + stestr run + runHook postCheck + ''; + + pythonImportsCheck = [ "zaqarclient" ]; + + meta = { + homepage = "https://opendev.org/openstack/python-zaqarclient"; + description = "Client library for OpenStack Zaqar API"; + license = lib.licenses.asl20; + maintainers = lib.teams.openstack.members; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fb1c6cdddf59..07bbb8a3f241 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12856,6 +12856,8 @@ self: super: with self; { python-xz = callPackage ../development/python-modules/python-xz { }; + python-zaqarclient = callPackage ../development/python-modules/python-zaqarclient { }; + python-zbar = callPackage ../development/python-modules/python-zbar { }; pythran = callPackage ../development/python-modules/pythran {