92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
71 lines
1.1 KiB
Nix
71 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, coreutils
|
|
, pbr
|
|
, prettytable
|
|
, keystoneauth1
|
|
, requests
|
|
, warlock
|
|
, oslo-utils
|
|
, oslo-i18n
|
|
, wrapt
|
|
, pyopenssl
|
|
, pythonOlder
|
|
, stestr
|
|
, testscenarios
|
|
, ddt
|
|
, requests-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-glanceclient";
|
|
version = "4.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-fknYBKZzCA6sThugNQT5+p+/hqv8vW6M2LMMpbT+7rY=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"glanceclient"
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|