mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00

Diff: https://github.com/openstack/python-watcherclient/compare/refs/tags/4.5.0...refs/tags/4.8.0
75 lines
1.3 KiB
Nix
75 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cliff,
|
|
fetchFromGitHub,
|
|
keystoneauth1,
|
|
openstackdocstheme,
|
|
osc-lib,
|
|
oslo-i18n,
|
|
oslo-serialization,
|
|
oslo-utils,
|
|
pbr,
|
|
pythonOlder,
|
|
setuptools,
|
|
sphinxcontrib-apidoc,
|
|
sphinxHook,
|
|
stestr,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-watcherclient";
|
|
version = "4.8.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openstack";
|
|
repo = "python-watcherclient";
|
|
tag = version;
|
|
hash = "sha256-ZwMsLXqfRw/qJ71B/WcLkK9TGX77GLiy/nLE7kRD1Xg=";
|
|
};
|
|
|
|
env.PBR_VERSION = version;
|
|
|
|
build-system = [
|
|
pbr
|
|
setuptools
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
openstackdocstheme
|
|
sphinxcontrib-apidoc
|
|
sphinxHook
|
|
];
|
|
|
|
sphinxBuilders = [ "man" ];
|
|
|
|
dependencies = [
|
|
cliff
|
|
keystoneauth1
|
|
osc-lib
|
|
oslo-i18n
|
|
oslo-serialization
|
|
oslo-utils
|
|
];
|
|
|
|
nativeCheckInputs = [ stestr ];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
stestr run
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "watcherclient" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/openstack/python-watcherclient";
|
|
description = "Client library for OpenStack Watcher API";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "watcher";
|
|
teams = [ lib.teams.openstack ];
|
|
};
|
|
}
|