1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fixtures,
6 jsonschema,
7 openstacksdk,
8 oslotest,
9 pbr,
10 python-glanceclient,
11 setuptools,
12 stestr,
13 subunit,
14 testscenarios,
15 testtools,
16}:
17
18buildPythonPackage rec {
19 pname = "os-client-config";
20 version = "2.3.0";
21 pyproject = true;
22
23 src = fetchPypi {
24 pname = "os_client_config";
25 inherit version;
26 hash = "sha256-4WomDy/VAK8U8Ve5t7fWkpLOg7D4pGHsaM5qikKWfL0=";
27 };
28
29 build-system = [
30 pbr
31 setuptools
32 ];
33
34 dependencies = [
35 openstacksdk
36 pbr
37 python-glanceclient
38 ];
39
40 nativeCheckInputs = [
41 fixtures
42 jsonschema
43 subunit
44 oslotest
45 stestr
46 testscenarios
47 testtools
48 ];
49
50 checkPhase = ''
51 runHook preCheck
52
53 stestr run
54
55 runHook postCheck
56 '';
57
58 pythonImportsCheck = [ "os_client_config" ];
59
60 meta = with lib; {
61 description = "Unified config handling for client libraries and programs";
62 homepage = "https://github.com/openstack/os-client-config";
63 license = licenses.asl20;
64 teams = [ teams.openstack ];
65 };
66}