2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cliff
|
|
|
|
, oslo-i18n
|
|
|
|
, oslo-utils
|
|
|
|
, openstacksdk
|
|
|
|
, pbr
|
|
|
|
, requests-mock
|
|
|
|
, simplejson
|
|
|
|
, stestr
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "osc-lib";
|
2021-09-22 15:38:15 +00:00
|
|
|
version = "2.4.2";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-22 15:38:15 +00:00
|
|
|
sha256 = "d6b530e3e50646840a6a5ef134e00f285cc4a04232c163f28585226ed40cc968";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pbr
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cliff
|
|
|
|
openstacksdk
|
|
|
|
oslo-i18n
|
|
|
|
oslo-utils
|
|
|
|
simplejson
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
requests-mock
|
|
|
|
stestr
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
stestr run
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "osc_lib" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OpenStackClient Library";
|
|
|
|
homepage = "https://github.com/openstack/osc-lib";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|