1{ lib
2, buildPythonPackage
3, fetchPypi
4, installShellFiles
5, pbr
6, openstackdocstheme
7, oslo-config
8, oslo-log
9, oslo-serialization
10, oslo-utils
11, prettytable
12, requests
13, simplejson
14, sphinx
15, sphinxcontrib-programoutput
16, babel
17, osc-lib
18, python-keystoneclient
19, debtcollector
20, callPackage
21}:
22
23buildPythonPackage rec {
24 pname = "python-manilaclient";
25 version = "4.6.0";
26 format = "setuptools";
27
28 src = fetchPypi {
29 inherit pname version;
30 hash = "sha256-JFdpPX2lVSGN/jVsKMOOKrPm51fwpD476TnQo/0AYWQ=";
31 };
32
33 nativeBuildInputs = [
34 installShellFiles
35 openstackdocstheme
36 sphinx
37 sphinxcontrib-programoutput
38 ];
39
40 propagatedBuildInputs = [
41 pbr
42 oslo-config
43 oslo-log
44 oslo-serialization
45 oslo-utils
46 prettytable
47 requests
48 simplejson
49 babel
50 osc-lib
51 python-keystoneclient
52 debtcollector
53 ];
54
55 postInstall = ''
56 export PATH=$out/bin:$PATH
57 sphinx-build -a -E -d doc/build/doctrees -b man doc/source doc/build/man
58 installManPage doc/build/man/python-manilaclient.1
59 '';
60
61 # Checks moved to 'passthru.tests' to workaround infinite recursion
62 doCheck = false;
63
64 passthru.tests = {
65 tests = callPackage ./tests.nix { };
66 };
67
68 pythonImportsCheck = [
69 "manilaclient"
70 ];
71
72 meta = with lib; {
73 description = "Client library for OpenStack Manila API";
74 homepage = "https://github.com/openstack/python-manilaclient";
75 license = licenses.asl20;
76 maintainers = teams.openstack.members;
77 };
78}