2021-09-22 15:38:15 +00:00
|
|
|
{ lib
|
2022-10-30 15:09:59 +00:00
|
|
|
, buildPythonPackage
|
2021-09-22 15:38:15 +00:00
|
|
|
, fetchPypi
|
2022-02-20 05:27:41 +00:00
|
|
|
, installShellFiles
|
2021-09-22 15:38:15 +00:00
|
|
|
, pbr
|
2022-02-20 05:27:41 +00:00
|
|
|
, openstackdocstheme
|
2021-09-22 15:38:15 +00:00
|
|
|
, oslo-config
|
|
|
|
, oslo-log
|
|
|
|
, oslo-serialization
|
|
|
|
, oslo-utils
|
|
|
|
, prettytable
|
|
|
|
, requests
|
|
|
|
, simplejson
|
2022-02-20 05:27:41 +00:00
|
|
|
, sphinx
|
|
|
|
, sphinxcontrib-programoutput
|
2022-05-18 14:49:53 +00:00
|
|
|
, babel
|
2021-09-22 15:38:15 +00:00
|
|
|
, osc-lib
|
|
|
|
, python-keystoneclient
|
|
|
|
, debtcollector
|
|
|
|
, callPackage
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
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";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "4.1.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-09 14:08:57 +00:00
|
|
|
hash = "sha256-yoyQyhyqRQZ8yyn3sv94JqkVZQMybwxLGFForZowr3o=";
|
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 { };
|
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"manilaclient"
|
|
|
|
];
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Client library for OpenStack Manila API";
|
|
|
|
homepage = "https://github.com/openstack/python-manilaclient";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|