depot/third_party/nixpkgs/pkgs/development/python-modules/python-watcherclient/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

75 lines
1.3 KiB
Nix

{
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;
};
}