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

82 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
ddt,
fetchFromGitHub,
jsonschema,
keystoneauth1,
openstackdocstheme,
osc-lib,
oslo-i18n,
oslo-log,
oslo-utils,
pbr,
pythonOlder,
requests-mock,
requests,
setuptools,
sphinxHook,
stestr,
stevedore,
}:
buildPythonPackage rec {
pname = "python-zaqarclient";
version = "2.7.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "openstack";
repo = "python-zaqarclient";
rev = "refs/tags/${version}";
hash = "sha256-WphTlqhrwxg5g88NH1W4b3uLAxLImnS34hDrlJjWeEU=";
};
env.PBR_VERSION = version;
build-system = [
pbr
setuptools
];
nativeBuildInputs = [
openstackdocstheme
sphinxHook
];
sphinxBuilders = [ "man" ];
dependencies = [
jsonschema
keystoneauth1
osc-lib
oslo-i18n
oslo-log
oslo-utils
requests
stevedore
];
nativeCheckInputs = [
ddt
requests-mock
stestr
];
checkPhase = ''
runHook preCheck
stestr run
runHook postCheck
'';
pythonImportsCheck = [ "zaqarclient" ];
meta = {
homepage = "https://opendev.org/openstack/python-zaqarclient";
description = "Client library for OpenStack Zaqar API";
license = lib.licenses.asl20;
maintainers = lib.teams.openstack.members;
};
}