2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
installShellFiles,
|
|
|
|
pbr,
|
|
|
|
openstackdocstheme,
|
|
|
|
oslo-config,
|
|
|
|
oslo-log,
|
|
|
|
oslo-serialization,
|
|
|
|
oslo-utils,
|
|
|
|
prettytable,
|
|
|
|
requests,
|
|
|
|
simplejson,
|
|
|
|
sphinx,
|
|
|
|
sphinxcontrib-programoutput,
|
|
|
|
babel,
|
|
|
|
osc-lib,
|
|
|
|
python-keystoneclient,
|
|
|
|
debtcollector,
|
|
|
|
callPackage,
|
2021-09-22 15:38:15 +00:00
|
|
|
}:
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildPythonPackage rec {
|
2021-09-22 15:38:15 +00:00
|
|
|
pname = "python-manilaclient";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "4.9.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-Q7ADjuGQh5C88WqT5II+NMYLYFwTip/bzZinca/xqFY=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
openstackdocstheme
|
|
|
|
sphinx
|
|
|
|
sphinxcontrib-programoutput
|
|
|
|
];
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pbr
|
|
|
|
oslo-config
|
|
|
|
oslo-log
|
|
|
|
oslo-serialization
|
|
|
|
oslo-utils
|
|
|
|
prettytable
|
|
|
|
requests
|
|
|
|
simplejson
|
2022-05-18 14:49:53 +00:00
|
|
|
babel
|
2021-09-22 15:38:15 +00:00
|
|
|
osc-lib
|
|
|
|
python-keystoneclient
|
|
|
|
debtcollector
|
|
|
|
];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
postInstall = ''
|
|
|
|
export PATH=$out/bin:$PATH
|
|
|
|
sphinx-build -a -E -d doc/build/doctrees -b man doc/source doc/build/man
|
|
|
|
installManPage doc/build/man/python-manilaclient.1
|
|
|
|
'';
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
# Checks moved to 'passthru.tests' to workaround infinite recursion
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
tests = callPackage ./tests.nix { };
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "manilaclient" ];
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Client library for OpenStack Manila API";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "manila";
|
2021-09-22 15:38:15 +00:00
|
|
|
homepage = "https://github.com/openstack/python-manilaclient";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|