depot/third_party/nixpkgs/pkgs/development/python-modules/python-troveclient/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

87 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,
}:
buildPythonPackage rec {
pname = "python-troveclient";
version = "8.5.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "openstack";
repo = "python-troveclient";
rev = "refs/tags/${version}";
hash = "sha256-lfnAmQ/IxEdc+XxC0dYxK2FgY7csNewGPuQuq0dNffM=";
};
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
];
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;
};
}