nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 debtcollector,
5 fetchFromGitHub,
6 jsonschema,
7 keystoneauth1,
8 openstackdocstheme,
9 osc-lib,
10 oslo-serialization,
11 oslo-utils,
12 oslotest,
13 pbr,
14 requests-mock,
15 requests,
16 setuptools,
17 sphinxHook,
18 sphinxcontrib-apidoc,
19 stestr,
20}:
21
22buildPythonPackage rec {
23 pname = "python-designateclient";
24 version = "6.3.0";
25 pyproject = true;
26
27 src = fetchFromGitHub {
28 owner = "openstack";
29 repo = "python-designateclient";
30 tag = version;
31 hash = "sha256-Upfu6FDaCRXniJLacuIt6K0qi8aOvHU0t43F3uWvhG8=";
32 };
33
34 env.PBR_VERSION = version;
35
36 nativeBuildInputs = [
37 openstackdocstheme
38 sphinxHook
39 sphinxcontrib-apidoc
40 ];
41
42 sphinxBuilders = [ "man" ];
43
44 build-system = [
45 pbr
46 setuptools
47 ];
48
49 dependencies = [
50 debtcollector
51 jsonschema
52 keystoneauth1
53 osc-lib
54 oslo-serialization
55 oslo-utils
56 requests
57 ];
58
59 nativeCheckInputs = [
60 oslotest
61 requests-mock
62 stestr
63 ];
64
65 checkPhase = ''
66 runHook preCheck
67 stestr run
68 runHook postCheck
69 '';
70
71 pythonImportsCheck = [ "designateclient" ];
72
73 meta = {
74 homepage = "https://opendev.org/openstack/python-designateclient";
75 description = "Client library for OpenStack Designate API";
76 license = lib.licenses.asl20;
77 teams = [ lib.teams.openstack ];
78 };
79}