0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

python311Packages.python-watcherclient: init at 4.4.0

https://opendev.org/openstack/python-watcherclient
https://wiki.openstack.org/wiki/Watcher
This commit is contained in:
Anthony ROUSSEL 2024-08-04 17:21:22 +02:00
parent 3ac0b617b4
commit d9ebc910b2
4 changed files with 80 additions and 0 deletions

View file

@ -17,6 +17,7 @@
python-mistralclient,
python-neutronclient,
python-openstackclient,
python-watcherclient,
python-zaqarclient,
python-zunclient,
requests-mock,
@ -81,6 +82,7 @@ buildPythonPackage rec {
python-manilaclient
python-mistralclient
python-neutronclient
python-watcherclient
python-zaqarclient
python-zunclient
];

View file

@ -0,0 +1,75 @@
{
lib,
buildPythonPackage,
cliff,
fetchFromGitHub,
keystoneauth1,
openstackdocstheme,
osc-lib,
oslo-i18n,
oslo-serialization,
oslo-utils,
pbr,
pythonOlder,
setuptools,
sphinxcontrib-apidoc,
sphinxHook,
stestr,
}:
buildPythonPackage rec {
pname = "python-watcherclient";
version = "4.4.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "openstack";
repo = "python-watcherclient";
rev = "refs/tags/${version}";
hash = "sha256-lDdiZKaeteKZEyfjpBx8KY+0FLFOYAnQXl0pTbqq0Ss=";
};
env.PBR_VERSION = version;
build-system = [
pbr
setuptools
];
nativeBuildInputs = [
openstackdocstheme
sphinxcontrib-apidoc
sphinxHook
];
sphinxBuilders = [ "man" ];
dependencies = [
cliff
keystoneauth1
osc-lib
oslo-i18n
oslo-serialization
oslo-utils
];
nativeCheckInputs = [ stestr ];
checkPhase = ''
runHook preCheck
stestr run
runHook postCheck
'';
pythonImportsCheck = [ "watcherclient" ];
meta = {
homepage = "https://opendev.org/openstack/python-watcherclient";
description = "Client library for OpenStack Watcher API";
license = lib.licenses.asl20;
mainProgram = "watcher";
maintainers = lib.teams.openstack.members;
};
}

View file

@ -22915,6 +22915,7 @@ with pkgs;
mistralclient = with python311Packages; toPythonApplication python-mistralclient;
swiftclient = with python311Packages; toPythonApplication python-swiftclient;
troveclient = with python311Packages; toPythonApplication python-troveclient;
watcherclient = with python311Packages; toPythonApplication python-watcherclient;
zunclient = with python311Packages; toPythonApplication python-zunclient;
openvdb = callPackage ../development/libraries/openvdb { };

View file

@ -12846,6 +12846,8 @@ self: super: with self; {
python-vlc = callPackage ../development/python-modules/python-vlc { };
python-watcherclient = callPackage ../development/python-modules/python-watcherclient { };
python-whois = callPackage ../development/python-modules/python-whois { };
python-wifi = callPackage ../development/python-modules/python-wifi { };