depot/third_party/nixpkgs/pkgs/development/python-modules/python-barbicanclient/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

70 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
cliff,
fetchFromGitea,
keystoneauth1,
oslo-i18n,
oslo-serialization,
oslo-utils,
pbr,
pythonOlder,
requests-mock,
requests,
setuptools,
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;
build-system = [
pbr
setuptools
];
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;
maintainers = lib.teams.openstack.members;
};
}