Files
nixpkgs/pkgs/development/python-modules/python-novaclient/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

84 lines
1.6 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
ddt,
iso8601,
keystoneauth1,
openssl,
openstackdocstheme,
oslo-i18n,
oslo-serialization,
pbr,
prettytable,
pythonOlder,
requests-mock,
setuptools,
sphinxcontrib-apidoc,
sphinxHook,
stestr,
testscenarios,
}:
buildPythonPackage rec {
pname = "python-novaclient";
version = "18.11.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "python_novaclient";
inherit version;
hash = "sha256-CjGuIHedTNFxuynB/k5rIrnH2Xx5Zw21FJu9+sA/V9w=";
};
nativeBuildInputs = [
openstackdocstheme
sphinxcontrib-apidoc
sphinxHook
];
sphinxBuilders = [ "man" ];
build-system = [ setuptools ];
dependencies = [
iso8601
keystoneauth1
oslo-i18n
oslo-serialization
pbr
prettytable
];
nativeCheckInputs = [
ddt
openssl
requests-mock
stestr
testscenarios
];
checkPhase = ''
runHook preCheck
stestr run -e <(echo "
novaclient.tests.unit.test_shell.ParserTest.test_ambiguous_option
novaclient.tests.unit.test_shell.ParserTest.test_not_really_ambiguous_option
novaclient.tests.unit.test_shell.ShellTest.test_osprofiler
novaclient.tests.unit.test_shell.ShellTestKeystoneV3.test_osprofiler
")
runHook postCheck
'';
pythonImportsCheck = [ "novaclient" ];
meta = {
description = "Client library for OpenStack Compute API";
mainProgram = "nova";
homepage = "https://github.com/openstack/python-novaclient";
license = lib.licenses.asl20;
teams = [ lib.teams.openstack ];
};
}