depot/third_party/nixpkgs/pkgs/development/python-modules/python-novaclient/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

66 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
ddt,
iso8601,
keystoneauth1,
openssl,
oslo-i18n,
oslo-serialization,
pbr,
prettytable,
pythonOlder,
requests-mock,
stestr,
testscenarios,
}:
buildPythonPackage rec {
pname = "python-novaclient";
version = "18.6.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-VzwQqkILCJjTX7FG7di7AFgGv/8BMa4rWjDKIqyJR3s=";
};
propagatedBuildInputs = [
iso8601
keystoneauth1
oslo-i18n
oslo-serialization
pbr
prettytable
];
nativeCheckInputs = [
ddt
openssl
requests-mock
stestr
testscenarios
];
checkPhase = ''
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
")
'';
pythonImportsCheck = [ "novaclient" ];
meta = with lib; {
description = "Client library for OpenStack Compute API";
mainProgram = "nova";
homepage = "https://github.com/openstack/python-novaclient";
license = licenses.asl20;
maintainers = teams.openstack.members;
};
}