evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / python-watcherclient / default.nix
blob05b2d315d2af596b3ec249005bd83c7b92796ed3
2   lib,
3   buildPythonPackage,
4   cliff,
5   fetchFromGitHub,
6   keystoneauth1,
7   openstackdocstheme,
8   osc-lib,
9   oslo-i18n,
10   oslo-serialization,
11   oslo-utils,
12   pbr,
13   pythonOlder,
14   setuptools,
15   sphinxcontrib-apidoc,
16   sphinxHook,
17   stestr,
20 buildPythonPackage rec {
21   pname = "python-watcherclient";
22   version = "4.5.0";
23   pyproject = true;
25   disabled = pythonOlder "3.8";
27   src = fetchFromGitHub {
28     owner = "openstack";
29     repo = "python-watcherclient";
30     rev = "refs/tags/${version}";
31     hash = "sha256-lDdiZKaeteKZEyfjpBx8KY+0FLFOYAnQXl0pTbqq0Ss=";
32   };
34   env.PBR_VERSION = version;
36   build-system = [
37     pbr
38     setuptools
39   ];
41   nativeBuildInputs = [
42     openstackdocstheme
43     sphinxcontrib-apidoc
44     sphinxHook
45   ];
47   sphinxBuilders = [ "man" ];
49   dependencies = [
50     cliff
51     keystoneauth1
52     osc-lib
53     oslo-i18n
54     oslo-serialization
55     oslo-utils
56   ];
58   nativeCheckInputs = [ stestr ];
60   checkPhase = ''
61     runHook preCheck
62     stestr run
63     runHook postCheck
64   '';
66   pythonImportsCheck = [ "watcherclient" ];
68   meta = {
69     homepage = "https://github.com/openstack/python-watcherclient";
70     description = "Client library for OpenStack Watcher API";
71     license = lib.licenses.asl20;
72     mainProgram = "watcher";
73     maintainers = lib.teams.openstack.members;
74   };