2021-09-22 15:38:15 +00:00
|
|
|
{ lib
|
2022-10-30 15:09:59 +00:00
|
|
|
, buildPythonPackage
|
2021-09-22 15:38:15 +00:00
|
|
|
, 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
|
|
|
|
}:
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildPythonPackage rec {
|
2021-09-22 15:38:15 +00:00
|
|
|
pname = "python-glanceclient";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "4.2.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-+CmOh9Dr6Gx8MLkR1u/YNpScOxIO7OUIbJAio+omOpg=";
|
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
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-22 15:38:15 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|