Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 ddt, 6 keystoneauth1, 7 openstackdocstheme, 8 oslo-i18n, 9 oslo-serialization, 10 oslo-utils, 11 pbr, 12 requests, 13 prettytable, 14 pythonOlder, 15 reno, 16 requests-mock, 17 setuptools, 18 simplejson, 19 sphinxHook, 20 stestr, 21 stevedore, 22}: 23 24buildPythonPackage rec { 25 pname = "python-cinderclient"; 26 version = "9.6.0"; 27 pyproject = true; 28 29 disabled = pythonOlder "3.9"; 30 31 src = fetchPypi { 32 inherit pname version; 33 hash = "sha256-P+/eJoJS5S4w/idz9lgienjG3uN4/LEy0xyG5uybojg="; 34 }; 35 36 nativeBuildInputs = [ 37 openstackdocstheme 38 reno 39 sphinxHook 40 ]; 41 42 sphinxBuilders = [ "man" ]; 43 44 build-system = [ setuptools ]; 45 46 dependencies = [ 47 simplejson 48 keystoneauth1 49 oslo-i18n 50 oslo-utils 51 pbr 52 prettytable 53 requests 54 stevedore 55 ]; 56 57 nativeCheckInputs = [ 58 ddt 59 oslo-serialization 60 requests-mock 61 stestr 62 ]; 63 64 checkPhase = '' 65 runHook preCheck 66 stestr run 67 runHook postCheck 68 ''; 69 70 pythonImportsCheck = [ "cinderclient" ]; 71 72 meta = with lib; { 73 description = "OpenStack Block Storage API Client Library"; 74 mainProgram = "cinder"; 75 homepage = "https://github.com/openstack/python-cinderclient"; 76 license = licenses.asl20; 77 maintainers = teams.openstack.members; 78 }; 79}