Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / python-novaclient / default.nix
blob1bad0f4e69306c5adac0bdeb9a16c2e11eeac32b
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 , pythonOlder
13 , requests-mock
14 , stestr
15 , testscenarios
18 buildPythonPackage rec {
19   pname = "python-novaclient";
20   version = "18.4.0";
21   format = "setuptools";
23   disabled = pythonOlder "3.8";
25   src = fetchPypi {
26     inherit pname version;
27     hash = "sha256-a2tq4sEescEI469V6qchGw/JGZk1oimmuj4N5RTBK1A=";
28   };
30   propagatedBuildInputs = [
31     iso8601
32     keystoneauth1
33     oslo-i18n
34     oslo-serialization
35     pbr
36     prettytable
37   ];
39   nativeCheckInputs = [
40     ddt
41     openssl
42     requests-mock
43     stestr
44     testscenarios
45   ];
47   checkPhase = ''
48     stestr run -e <(echo "
49     novaclient.tests.unit.test_shell.ShellTest.test_osprofiler
50     novaclient.tests.unit.test_shell.ShellTestKeystoneV3.test_osprofiler
51     ")
52   '';
54   pythonImportsCheck = [ "novaclient" ];
56   meta = with lib; {
57     description = "Client library for OpenStack Compute API";
58     homepage = "https://github.com/openstack/python-novaclient";
59     license = licenses.asl20;
60     maintainers = teams.openstack.members;
61   };