elasticsearch-curator: 5.8.4 -> 8.0.4
Diff: https://github.com/elastic/curator/compare/refs/tags/v5.8.4...v8.0.4 Changelog: https://github.com/elastic/curator/releases/tag/v8.0.4
This commit is contained in:
parent
699492aa7e
commit
b688ff79ef
|
@ -3,66 +3,75 @@
|
||||||
, python3
|
, python3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
python3.pkgs.buildPythonApplication rec {
|
||||||
python = python3.override {
|
|
||||||
packageOverrides = self: super: {
|
|
||||||
click = super.click.overridePythonAttrs (old: rec {
|
|
||||||
version = "7.1.2";
|
|
||||||
src = old.src.override {
|
|
||||||
inherit version;
|
|
||||||
hash = "sha256-0rUlXHxjSbwb0eWeCM0SrLvWPOZJ8liHVXg6qU37axo=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
requests-aws4auth = super.requests-aws4auth.overridePythonAttrs (old: {
|
|
||||||
doCheck = false; # requires click>=8.0
|
|
||||||
});
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in python.pkgs.buildPythonApplication rec {
|
|
||||||
pname = "elasticsearch-curator";
|
pname = "elasticsearch-curator";
|
||||||
version = "5.8.4";
|
version = "8.0.4";
|
||||||
|
format = "pyproject";
|
||||||
format = "setuptools";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "elastic";
|
owner = "elastic";
|
||||||
repo = "curator";
|
repo = "curator";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-wSfd52jebUkgF5xhjcoUjI7j46eJF33pVb4Wrybq44g=";
|
hash = "sha256-FPp2BpfYsmNwwevYQ6EH3N1q0TjyeEsBeDM9EUbLl+Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
pythonRelaxDeps = [
|
||||||
substituteInPlace setup.cfg \
|
"click"
|
||||||
--replace "urllib3==1.26.4" "urllib3"
|
"ecs-logging"
|
||||||
substituteInPlace setup.py \
|
"elasticsearch8"
|
||||||
--replace "urllib3==1.26.4" "urllib3" \
|
"es_client"
|
||||||
--replace "pyyaml==5.4.1" "pyyaml"
|
"pyyaml"
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = with python.pkgs; [
|
|
||||||
elasticsearch
|
|
||||||
urllib3
|
|
||||||
requests
|
|
||||||
boto3
|
|
||||||
requests-aws4auth
|
|
||||||
click
|
|
||||||
pyyaml
|
|
||||||
voluptuous
|
|
||||||
certifi
|
|
||||||
six
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = with python.pkgs; [
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
|
hatchling
|
||||||
|
pythonRelaxDepsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
certifi
|
||||||
|
click
|
||||||
|
ecs-logging
|
||||||
|
elasticsearch8
|
||||||
|
es-client
|
||||||
|
pyyaml
|
||||||
|
six
|
||||||
|
voluptuous
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = with python3.pkgs; [
|
||||||
mock
|
mock
|
||||||
|
requests
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
"test/integration" # requires running elasticsearch
|
# 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 = [
|
disabledTests = [
|
||||||
# access network
|
# Test require access network
|
||||||
"test_api_key_not_set"
|
"test_api_key_not_set"
|
||||||
"test_api_key_set"
|
"test_api_key_set"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue