45 lines
916 B
Nix
45 lines
916 B
Nix
{
|
|
lib,
|
|
fetchFromGitLab,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "lavacli";
|
|
version = "2.2.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "lava";
|
|
repo = "lavacli";
|
|
tag = "v${version}";
|
|
hash = "sha256-Pfsf2a5y3rpoTGY3PmNdq9ojSjBVBfawz/LTQmIQ2vU=";
|
|
};
|
|
|
|
build-system = with python3.pkgs; [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
aiohttp
|
|
jinja2
|
|
requests
|
|
ruamel-yaml
|
|
voluptuous
|
|
];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
pytestCheckHook
|
|
pyzmq
|
|
];
|
|
|
|
meta = {
|
|
description = "Command line tool to interact with one or many LAVA instances using XML-RPC";
|
|
homepage = "https://lava.gitlab.io/lavacli/";
|
|
changelog = "https://gitlab.com/lava/lavacli/-/commits/v${version}?ref_type=tags";
|
|
license = lib.licenses.agpl3Only;
|
|
teams = [ lib.teams.cyberus ];
|
|
mainProgram = "lavacli";
|
|
};
|
|
}
|