2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cliff,
|
|
|
|
fetchFromGitea,
|
|
|
|
keystoneauth1,
|
2024-07-31 10:19:44 +00:00
|
|
|
openstackdocstheme,
|
2024-07-27 06:49:29 +00:00
|
|
|
oslo-i18n,
|
|
|
|
oslo-serialization,
|
|
|
|
oslo-utils,
|
|
|
|
pbr,
|
|
|
|
pythonOlder,
|
|
|
|
requests-mock,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
2024-07-31 10:19:44 +00:00
|
|
|
sphinxcontrib-apidoc,
|
|
|
|
sphinxHook,
|
2024-07-27 06:49:29 +00:00
|
|
|
stestr,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-barbicanclient";
|
|
|
|
version = "7.0.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "opendev.org";
|
|
|
|
owner = "openstack";
|
|
|
|
repo = "python-barbicanclient";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-odoYyBulOQkjUpymFyZgvI+DYmdHJY3PaG8hh2ms+/0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
env.PBR_VERSION = version;
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Disable rsvgconverter not needed to build manpage
|
|
|
|
substituteInPlace doc/source/conf.py \
|
|
|
|
--replace-fail "'sphinxcontrib.rsvgconverter'," "#'sphinxcontrib.rsvgconverter',"
|
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [
|
2024-07-31 10:19:44 +00:00
|
|
|
openstackdocstheme
|
2024-07-27 06:49:29 +00:00
|
|
|
pbr
|
|
|
|
setuptools
|
2024-07-31 10:19:44 +00:00
|
|
|
sphinxHook
|
|
|
|
sphinxcontrib-apidoc
|
2024-07-27 06:49:29 +00:00
|
|
|
];
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
sphinxBuilders = [ "man" ];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = [
|
|
|
|
cliff
|
|
|
|
keystoneauth1
|
|
|
|
oslo-i18n
|
|
|
|
oslo-serialization
|
|
|
|
oslo-utils
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
requests-mock
|
|
|
|
stestr
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
stestr run
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "barbicanclient" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://opendev.org/openstack/python-barbicanclient";
|
|
|
|
description = "Client library for OpenStack Barbican API";
|
|
|
|
license = lib.licenses.asl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
mainProgram = "barbican";
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = lib.teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|