pythonPackages.python-glanceclient: init 3.5.0
This commit is contained in:
parent
823d821679
commit
0379ff190e
2 changed files with 67 additions and 0 deletions
|
@ -0,0 +1,65 @@
|
|||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchPypi
|
||||
, coreutils
|
||||
, pbr
|
||||
, prettytable
|
||||
, keystoneauth1
|
||||
, requests
|
||||
, warlock
|
||||
, oslo-utils
|
||||
, oslo-i18n
|
||||
, wrapt
|
||||
, pyopenssl
|
||||
, stestr
|
||||
, testscenarios
|
||||
, ddt
|
||||
, requests-mock
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "python-glanceclient";
|
||||
version = "3.5.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "417b9d814b43e62df4351f26a0d5569b801e9f99f7758bd8c82ef994c3629356";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
|
@ -5544,6 +5544,8 @@ in {
|
|||
|
||||
python-ecobee-api = callPackage ../development/python-modules/python-ecobee-api { };
|
||||
|
||||
python-glanceclient = callPackage ../development/python-modules/python-glanceclient { };
|
||||
|
||||
python-ipmi = callPackage ../development/python-modules/python-ipmi { };
|
||||
|
||||
python-izone = callPackage ../development/python-modules/python-izone { };
|
||||
|
|
Loading…
Reference in a new issue