2021-09-13 21:10:40 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
2022-02-18 15:12:30 +00:00
|
|
|
, installShellFiles
|
2021-09-13 21:10:40 +01:00
|
|
|
, pbr
|
2022-02-18 15:12:30 +00:00
|
|
|
, openstackdocstheme
|
2021-09-13 21:10:40 +01:00
|
|
|
, oslo-config
|
|
|
|
, oslo-log
|
|
|
|
, oslo-serialization
|
|
|
|
, oslo-utils
|
|
|
|
, prettytable
|
|
|
|
, requests
|
|
|
|
, simplejson
|
2022-02-18 15:12:30 +00:00
|
|
|
, sphinx
|
|
|
|
, sphinxcontrib-programoutput
|
2022-05-09 00:53:28 +01:00
|
|
|
, babel
|
2021-09-13 21:10:40 +01:00
|
|
|
, osc-lib
|
|
|
|
, python-keystoneclient
|
|
|
|
, debtcollector
|
|
|
|
, callPackage
|
2022-05-21 11:36:01 +01:00
|
|
|
, pythonOlder
|
2021-09-13 21:10:40 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "python-manilaclient";
|
2022-05-21 09:45:15 +01:00
|
|
|
version = "3.4.0";
|
2022-05-21 11:36:01 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-09-13 21:10:40 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-05-21 11:36:01 +01:00
|
|
|
hash = "sha256-F41/k7NJigwFNw2946sj3dZDKDH+PkgOjkml9t3Mgtw=";
|
2021-09-13 21:10:40 +01:00
|
|
|
};
|
|
|
|
|
2022-02-18 15:12:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
openstackdocstheme
|
|
|
|
sphinx
|
|
|
|
sphinxcontrib-programoutput
|
|
|
|
];
|
|
|
|
|
2021-09-13 21:10:40 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pbr
|
|
|
|
oslo-config
|
|
|
|
oslo-log
|
|
|
|
oslo-serialization
|
|
|
|
oslo-utils
|
|
|
|
prettytable
|
|
|
|
requests
|
|
|
|
simplejson
|
2022-05-09 00:53:28 +01:00
|
|
|
babel
|
2021-09-13 21:10:40 +01:00
|
|
|
osc-lib
|
|
|
|
python-keystoneclient
|
|
|
|
debtcollector
|
|
|
|
];
|
|
|
|
|
2022-02-18 15:12:30 +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-13 21:10:40 +01:00
|
|
|
# Checks moved to 'passthru.tests' to workaround infinite recursion
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
tests = callPackage ./tests.nix { };
|
|
|
|
};
|
|
|
|
|
2022-05-21 11:36:01 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"manilaclient"
|
|
|
|
];
|
2021-09-13 21:10:40 +01: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;
|
|
|
|
};
|
|
|
|
}
|