depot/third_party/nixpkgs/pkgs/development/python-modules/python-troveclient/default.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

89 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
httplib2,
keystoneauth1,
openstackdocstheme,
osc-lib,
oslo-i18n,
oslo-utils,
pbr,
prettytable,
python-mistralclient,
python-openstackclient,
python-swiftclient,
pythonOlder,
requests-mock,
requests,
setuptools,
sphinxcontrib-apidoc,
sphinxHook,
stestr,
stevedore,
}:
buildPythonPackage rec {
pname = "python-troveclient";
version = "8.6.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "openstack";
repo = "python-troveclient";
rev = "refs/tags/${version}";
hash = "sha256-6JviPG2ikKRqvW/eqPIHMvpV6GjqbaXYHhcOOpaIS4U=";
};
env.PBR_VERSION = version;
nativeBuildInputs = [
openstackdocstheme
sphinxHook
sphinxcontrib-apidoc
];
sphinxBuilders = [ "man" ];
build-system = [
pbr
setuptools
];
dependencies = [
keystoneauth1
osc-lib
oslo-i18n
oslo-utils
prettytable
python-mistralclient
python-openstackclient
python-swiftclient
requests
stevedore
];
nativeCheckInputs = [
httplib2
requests-mock
stestr
];
checkPhase = ''
runHook preCheck
stestr run
runHook postCheck
'';
pythonImportsCheck = [ "troveclient" ];
meta = {
homepage = "https://github.com/openstack/python-troveclient";
description = "Client library for OpenStack Trove API";
license = lib.licenses.asl20;
mainProgram = "trove";
maintainers = lib.teams.openstack.members;
};
}