2021-09-22 15:38:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, coreutils
|
|
|
|
, pbr
|
|
|
|
, prettytable
|
|
|
|
, keystoneauth1
|
|
|
|
, requests
|
|
|
|
, warlock
|
|
|
|
, oslo-utils
|
|
|
|
, oslo-i18n
|
|
|
|
, wrapt
|
|
|
|
, pyopenssl
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
2021-09-22 15:38:15 +00:00
|
|
|
, stestr
|
|
|
|
, testscenarios
|
|
|
|
, ddt
|
|
|
|
, requests-mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "python-glanceclient";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "4.0.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-a3tFLmSKuaKbBQy32EkU7sPIEQtN5gaDqoGT03gka+w=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace glanceclient/tests/unit/v1/test_shell.py \
|
|
|
|
--replace "/bin/echo" "${coreutils}/bin/echo"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pbr
|
|
|
|
prettytable
|
|
|
|
keystoneauth1
|
|
|
|
requests
|
|
|
|
warlock
|
|
|
|
oslo-utils
|
|
|
|
oslo-i18n
|
|
|
|
wrapt
|
|
|
|
pyopenssl
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
stestr
|
|
|
|
testscenarios
|
|
|
|
ddt
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
stestr run
|
|
|
|
'';
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"glanceclient"
|
|
|
|
];
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for the OpenStack Images API";
|
|
|
|
homepage = "https://github.com/openstack/python-glanceclient/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|