blob: f09aad4a93e3acaab08289f208056503acd70da1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "elasticsearch-curator";
version = "8.0.8";
format = "pyproject";
src = fetchFromGitHub {
owner = "elastic";
repo = "curator";
rev = "refs/tags/v${version}";
hash = "sha256-G8wKeEr7TuUWlqz9hJmnJW7yxn+4WPoStVC0AX5jdHI=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "elasticsearch8==" "elasticsearch8>=" \
--replace "es_client==" "es_client>=" \
--replace "ecs-logging==" "ecs-logging>=" \
--replace "click==" "click>="\
--replace "pyyaml==" "pyyaml>="
'';
nativeBuildInputs = with python3.pkgs; [
hatchling
];
propagatedBuildInputs = with python3.pkgs; [
certifi
click
ecs-logging
elasticsearch8
es-client
pyyaml
six
voluptuous
];
nativeCheckInputs = with python3.pkgs; [
mock
requests
pytestCheckHook
];
disabledTestPaths = [
# Test requires running elasticsearch
"tests/integration/test_alias.py"
"tests/integration/test_allocation.py"
"tests/integration/test_cli.py"
"tests/integration/test_close.py"
"tests/integration/test_clusterrouting.py"
"tests/integration/test_count_pattern.py"
"tests/integration/test_create_index.py"
"tests/integration/test_datemath.py"
"tests/integration/test_delete_indices.py"
"tests/integration/test_delete_snapshots.py"
"tests/integration/test_delete_snapshots.py"
"tests/integration/test_es_repo_mgr.py"
"tests/integration/test_forcemerge.py"
"tests/integration/test_integrations.py"
"tests/integration/test_open.py"
"tests/integration/test_reindex.py"
"tests/integration/test_replicas.py"
"tests/integration/test_restore.py"
"tests/integration/test_rollover.py"
"tests/integration/test_shrink.py"
"tests/integration/test_snapshot.py"
];
disabledTests = [
# Test require access network
"test_api_key_not_set"
"test_api_key_set"
];
meta = with lib; {
description = "Curate, or manage, your Elasticsearch indices and snapshots";
homepage = "https://github.com/elastic/curator";
changelog = "https://github.com/elastic/curator/releases/tag/v${version}";
license = licenses.asl20;
longDescription = ''
Elasticsearch Curator helps you curate, or manage, your Elasticsearch
indices and snapshots by:
* Obtaining the full list of indices (or snapshots) from the cluster, as the
actionable list
* Iterate through a list of user-defined filters to progressively remove
indices (or snapshots) from this actionable list as needed.
* Perform various actions on the items which remain in the actionable list.
'';
maintainers = with maintainers; [ basvandijk ];
};
}
|