forked from mirrors/nixpkgs
59 lines
1 KiB
Nix
59 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, ddt
|
|
, iso8601
|
|
, keystoneauth1
|
|
, openssl
|
|
, oslo-i18n
|
|
, oslo-serialization
|
|
, pbr
|
|
, prettytable
|
|
, requests-mock
|
|
, stestr
|
|
, testscenarios
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-novaclient";
|
|
version = "17.7.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-Trwn9M4GwVW46ZGkRGO5NYWW5oVs8XHJr43HVo2Gi+0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
iso8601
|
|
keystoneauth1
|
|
oslo-i18n
|
|
oslo-serialization
|
|
pbr
|
|
prettytable
|
|
];
|
|
|
|
checkInputs = [
|
|
ddt
|
|
openssl
|
|
requests-mock
|
|
stestr
|
|
testscenarios
|
|
];
|
|
|
|
checkPhase = ''
|
|
stestr run -e <(echo "
|
|
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";
|
|
homepage = "https://github.com/openstack/python-novaclient";
|
|
license = licenses.asl20;
|
|
maintainers = teams.openstack.members;
|
|
};
|
|
}
|