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
|
|
|
, cliff
|
2022-08-12 12:06:08 +00:00
|
|
|
, fetchPypi
|
2021-09-22 15:38:15 +00:00
|
|
|
, iso8601
|
2022-08-12 12:06:08 +00:00
|
|
|
, keystoneauth1
|
2021-09-22 15:38:15 +00:00
|
|
|
, osc-lib
|
|
|
|
, oslo-i18n
|
|
|
|
, oslo-serialization
|
|
|
|
, oslo-utils
|
2022-08-12 12:06:08 +00:00
|
|
|
, pbr
|
|
|
|
, prettytable
|
2021-09-22 15:38:15 +00:00
|
|
|
, python-swiftclient
|
2022-08-12 12:06:08 +00:00
|
|
|
, pythonOlder
|
2021-09-22 15:38:15 +00:00
|
|
|
, pyyaml
|
|
|
|
, requests
|
2022-08-12 12:06:08 +00:00
|
|
|
, requests-mock
|
2021-09-22 15:38:15 +00:00
|
|
|
, stestr
|
|
|
|
, testscenarios
|
|
|
|
}:
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildPythonPackage rec {
|
2021-09-22 15:38:15 +00:00
|
|
|
pname = "python-heatclient";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.5.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-B1F40HYHFF91mkxwySR/kqCvlwLLtBgqwUvw2byOc9g=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cliff
|
|
|
|
iso8601
|
2022-08-12 12:06:08 +00:00
|
|
|
keystoneauth1
|
2021-09-22 15:38:15 +00:00
|
|
|
osc-lib
|
|
|
|
oslo-i18n
|
|
|
|
oslo-serialization
|
|
|
|
oslo-utils
|
2022-08-12 12:06:08 +00:00
|
|
|
pbr
|
|
|
|
prettytable
|
2021-09-22 15:38:15 +00:00
|
|
|
python-swiftclient
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-22 15:38:15 +00:00
|
|
|
stestr
|
|
|
|
testscenarios
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
stestr run -e <(echo "
|
|
|
|
heatclient.tests.unit.test_common_http.HttpClientTest.test_get_system_ca_file
|
2022-08-12 12:06:08 +00:00
|
|
|
heatclient.tests.unit.test_deployment_utils.TempURLSignalTest.test_create_temp_url
|
2021-09-22 15:38:15 +00:00
|
|
|
")
|
|
|
|
'';
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"heatclient"
|
|
|
|
];
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-08-12 12:06:08 +00:00
|
|
|
description = "Library for Heat built on the Heat orchestration API";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "heat";
|
2021-09-22 15:38:15 +00:00
|
|
|
homepage = "https://github.com/openstack/python-heatclient";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|