Skip to content

Commit

Permalink
python311Packages.python-watcherclient: init at 4.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyroussel committed Sep 13, 2024
1 parent 3ac0b61 commit d9ebc91
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
python-mistralclient,
python-neutronclient,
python-openstackclient,
python-watcherclient,
python-zaqarclient,
python-zunclient,
requests-mock,
Expand Down Expand Up @@ -81,6 +82,7 @@ buildPythonPackage rec {
python-manilaclient
python-mistralclient
python-neutronclient
python-watcherclient
python-zaqarclient
python-zunclient
];
Expand Down
75 changes: 75 additions & 0 deletions pkgs/development/python-modules/python-watcherclient/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit d9ebc91

Please sign in to comment.