portfolio: 0.71.2 -> 0.72.2 (#360387)
[NixPkgs.git] / pkgs / development / python-modules / python-designateclient / default.nix
blob44b5b4a665efcf1650b218e0074c690a83910c3a
2   lib,
3   buildPythonPackage,
4   debtcollector,
5   fetchFromGitea,
6   jsonschema,
7   keystoneauth1,
8   openstackdocstheme,
9   osc-lib,
10   oslo-serialization,
11   oslo-utils,
12   oslotest,
13   pbr,
14   pythonOlder,
15   requests-mock,
16   requests,
17   setuptools,
18   sphinxHook,
19   sphinxcontrib-apidoc,
20   stestr,
23 buildPythonPackage rec {
24   pname = "python-designateclient";
25   version = "6.1.0";
26   pyproject = true;
28   disabled = pythonOlder "3.8";
30   src = fetchFromGitea {
31     domain = "opendev.org";
32     owner = "openstack";
33     repo = "python-designateclient";
34     rev = version;
35     hash = "sha256-MwcpRQXH8EjWv41iHxorbFL9EpYu8qOLkDeUx6inEAU=";
36   };
38   env.PBR_VERSION = version;
40   nativeBuildInputs = [
41     openstackdocstheme
42     sphinxHook
43     sphinxcontrib-apidoc
44   ];
46   sphinxBuilders = [ "man" ];
48   build-system = [
49     pbr
50     setuptools
51   ];
53   dependencies = [
54     debtcollector
55     jsonschema
56     keystoneauth1
57     osc-lib
58     oslo-serialization
59     oslo-utils
60     requests
61   ];
63   nativeCheckInputs = [
64     oslotest
65     requests-mock
66     stestr
67   ];
69   checkPhase = ''
70     runHook preCheck
71     stestr run
72     runHook postCheck
73   '';
75   pythonImportsCheck = [ "designateclient" ];
77   meta = {
78     homepage = "https://opendev.org/openstack/python-designateclient";
79     description = "Client library for OpenStack Designate API";
80     license = lib.licenses.asl20;
81     maintainers = lib.teams.openstack.members;
82   };