1{ lib
2, buildPythonPackage
3, fetchPypi
4, ddt
5, iso8601
6, keystoneauth1
7, openssl
8, oslo-i18n
9, oslo-serialization
10, pbr
11, prettytable
12, requests-mock
13, stestr
14, testscenarios
15}:
16
17buildPythonPackage rec {
18 pname = "python-novaclient";
19 version = "17.6.0";
20
21 src = fetchPypi {
22 inherit pname version;
23 sha256 = "sha256-yRDCCFMQ2mNfs0NYXxBwcS/w+cs8j3nUTKPWMsTyMPU=";
24 };
25
26 propagatedBuildInputs = [
27 iso8601
28 keystoneauth1
29 oslo-i18n
30 oslo-serialization
31 pbr
32 prettytable
33 ];
34
35 checkInputs = [
36 ddt
37 openssl
38 requests-mock
39 stestr
40 testscenarios
41 ];
42
43 checkPhase = ''
44 stestr run -e <(echo "
45 novaclient.tests.unit.test_shell.ShellTest.test_osprofiler
46 novaclient.tests.unit.test_shell.ShellTestKeystoneV3.test_osprofiler
47 ")
48 '';
49
50 pythonImportsCheck = [ "novaclient" ];
51
52 meta = with lib; {
53 description = "Client library for OpenStack Compute API";
54 homepage = "https://github.com/openstack/python-novaclient";
55 license = licenses.asl20;
56 maintainers = teams.openstack.members;
57 };
58}