33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, ddt
|
|
, installShellFiles
|
|
, openstackdocstheme
|
|
, osc-lib
|
|
, pbr
|
|
, python-cinderclient
|
|
, python-keystoneclient
|
|
, python-novaclient
|
|
, requests-mock
|
|
, sphinx
|
|
, stestr
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-openstackclient";
|
|
version = "6.0.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-kcOsEtpLQjwWs5F2FvhKI+KWHnUPzlkNQJ7MUO4EMc4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
openstackdocstheme
|
|
sphinx
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
osc-lib
|
|
pbr
|
|
python-cinderclient
|
|
python-keystoneclient
|
|
python-novaclient
|
|
];
|
|
|
|
postInstall = ''
|
|
sphinx-build -a -E -d doc/build/doctrees -b man doc/source doc/build/man
|
|
installManPage doc/build/man/openstack.1
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
ddt
|
|
stestr
|
|
requests-mock
|
|
];
|
|
|
|
checkPhase = ''
|
|
stestr run
|
|
'';
|
|
|
|
pythonImportsCheck = [ "openstackclient" ];
|
|
|
|
meta = with lib; {
|
|
description = "OpenStack Command-line Client";
|
|
homepage = "https://github.com/openstack/python-openstackclient";
|
|
license = licenses.asl20;
|
|
maintainers = teams.openstack.members;
|
|
};
|
|
}
|