mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
93 lines
2 KiB
Nix
93 lines
2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
ddt,
|
|
keystoneauth1,
|
|
openstackdocstheme,
|
|
oslo-i18n,
|
|
oslo-serialization,
|
|
oslo-utils,
|
|
pbr,
|
|
requests,
|
|
prettytable,
|
|
pythonOlder,
|
|
reno,
|
|
requests-mock,
|
|
setuptools,
|
|
simplejson,
|
|
sphinxHook,
|
|
stestr,
|
|
stevedore,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-cinderclient";
|
|
version = "9.7.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
pname = "python_cinderclient";
|
|
inherit version;
|
|
hash = "sha256-GMRQHlSWd5hNhbCxD9B0770mXjCt0qeW0oF2BVqNfc8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
openstackdocstheme
|
|
reno
|
|
sphinxHook
|
|
];
|
|
|
|
sphinxBuilders = [ "man" ];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
simplejson
|
|
keystoneauth1
|
|
oslo-i18n
|
|
oslo-utils
|
|
pbr
|
|
prettytable
|
|
requests
|
|
stevedore
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
ddt
|
|
oslo-serialization
|
|
requests-mock
|
|
stestr
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
# File "/build/python-cinderclient-9.6.0/cinderclient/client.py", line 196, in request
|
|
# if raise_exc and resp.status_code >= 400:
|
|
# ^^^^^^^^^^^^^^^^^^^^^^^
|
|
#
|
|
# TypeError: '>=' not supported between instances of 'Mock' and 'int'
|
|
stestr run -e <(echo "
|
|
cinderclient.tests.unit.test_client.ClientTest.test_keystone_request_raises_auth_failure_exception
|
|
cinderclient.tests.unit.test_client.ClientTest.test_sessionclient_request_method
|
|
cinderclient.tests.unit.test_client.ClientTest.test_sessionclient_request_method_raises_badrequest
|
|
cinderclient.tests.unit.test_client.ClientTest.test_sessionclient_request_method_raises_overlimit
|
|
cinderclient.tests.unit.test_shell.ShellTest.test_password_prompted
|
|
")
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "cinderclient" ];
|
|
|
|
meta = with lib; {
|
|
description = "OpenStack Block Storage API Client Library";
|
|
mainProgram = "cinder";
|
|
homepage = "https://github.com/openstack/python-cinderclient";
|
|
license = licenses.asl20;
|
|
teams = [ teams.openstack ];
|
|
};
|
|
}
|