1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 ddt, 6 keystoneauth1, 7 oslo-i18n, 8 oslo-serialization, 9 oslo-utils, 10 pbr, 11 requests, 12 prettytable, 13 requests-mock, 14 simplejson, 15 stestr, 16 stevedore, 17}: 18 19buildPythonPackage rec { 20 pname = "python-cinderclient"; 21 version = "9.5.0"; 22 format = "setuptools"; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-G51xev+TytQgBF+2xS9jdqty8IX4GTEwiSAg7EbJNVU="; 27 }; 28 29 propagatedBuildInputs = [ 30 simplejson 31 keystoneauth1 32 oslo-i18n 33 oslo-utils 34 pbr 35 prettytable 36 requests 37 stevedore 38 ]; 39 40 nativeCheckInputs = [ 41 ddt 42 oslo-serialization 43 requests-mock 44 stestr 45 ]; 46 47 checkPhase = '' 48 stestr run 49 ''; 50 51 pythonImportsCheck = [ "cinderclient" ]; 52 53 meta = with lib; { 54 description = "OpenStack Block Storage API Client Library"; 55 mainProgram = "cinder"; 56 homepage = "https://github.com/openstack/python-cinderclient"; 57 license = licenses.asl20; 58 maintainers = teams.openstack.members; 59 }; 60}