Files
nixpkgs/pkgs/development/python-modules/python-heatclient/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

91 lines
1.6 KiB
Nix

{
lib,
buildPythonPackage,
cliff,
fetchPypi,
iso8601,
keystoneauth1,
openstackdocstheme,
osc-lib,
oslo-i18n,
oslo-serialization,
oslo-utils,
pbr,
prettytable,
python-openstackclient,
python-swiftclient,
pythonOlder,
pyyaml,
requests-mock,
requests,
setuptools,
sphinxHook,
stestr,
testscenarios,
}:
buildPythonPackage rec {
pname = "python-heatclient";
version = "4.3.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchPypi {
pname = "python_heatclient";
inherit version;
hash = "sha256-itp863fyXw2+OuLjMoowRhrblP+/NrDCqrwszkg7dfA=";
};
build-system = [
openstackdocstheme
python-openstackclient
setuptools
sphinxHook
];
sphinxBuilders = [ "man" ];
dependencies = [
cliff
iso8601
keystoneauth1
osc-lib
oslo-i18n
oslo-serialization
oslo-utils
pbr
prettytable
python-swiftclient
pyyaml
requests
];
nativeCheckInputs = [
stestr
testscenarios
requests-mock
];
checkPhase = ''
runHook preCheck
stestr run -e <(echo "
heatclient.tests.unit.test_common_http.HttpClientTest.test_get_system_ca_file
heatclient.tests.unit.test_deployment_utils.TempURLSignalTest.test_create_temp_url
")
runHook postCheck
'';
pythonImportsCheck = [ "heatclient" ];
meta = {
description = "Library for Heat built on the Heat orchestration API";
mainProgram = "heat";
homepage = "https://github.com/openstack/python-heatclient";
license = lib.licenses.asl20;
teams = [ lib.teams.openstack ];
};
}