mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
elasticsearch-curator: 5.8.1 -> 5.8.4
This commit is contained in:
parent
3aef23986c
commit
453590adec
@ -1,64 +1,69 @@
|
|||||||
{ lib, fetchFromGitHub, python }:
|
{ lib, fetchFromGitHub, python3 }:
|
||||||
|
|
||||||
let
|
let
|
||||||
py = python.override {
|
python = python3.override {
|
||||||
packageOverrides = self: super: {
|
packageOverrides = self: super: {
|
||||||
click = super.click.overridePythonAttrs (oldAttrs: rec {
|
click = super.click.overridePythonAttrs (old: rec {
|
||||||
version = "6.7";
|
version = "7.1.2";
|
||||||
src = oldAttrs.src.override {
|
src = old.src.override {
|
||||||
inherit version;
|
inherit version;
|
||||||
sha256 = "f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b";
|
sha256 = "d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a";
|
||||||
};
|
};
|
||||||
doCheck = false;
|
});
|
||||||
postPatch = "";
|
requests-aws4auth = super.requests-aws4auth.overridePythonAttrs (old: {
|
||||||
});
|
doCheck = false; # requires click>=8.0
|
||||||
|
});
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
in python.pkgs.buildPythonApplication rec {
|
||||||
in
|
|
||||||
|
|
||||||
with py.pkgs;
|
|
||||||
buildPythonApplication rec {
|
|
||||||
pname = "elasticsearch-curator";
|
pname = "elasticsearch-curator";
|
||||||
version = "5.8.1";
|
version = "5.8.4";
|
||||||
|
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "elastic";
|
owner = "elastic";
|
||||||
repo = "curator";
|
repo = "curator";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1shr9jslirjnbvma3p19djsnamxl7f3m9c8zrlclk57zv8rnwpkr";
|
hash = "sha256-wSfd52jebUkgF5xhjcoUjI7j46eJF33pVb4Wrybq44g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# The test hangs so we disable it.
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
click
|
|
||||||
certifi
|
|
||||||
requests-aws4auth
|
|
||||||
pyopenssl
|
|
||||||
voluptuous
|
|
||||||
pyyaml
|
|
||||||
elasticsearch
|
|
||||||
boto3
|
|
||||||
];
|
|
||||||
|
|
||||||
checkInputs = [
|
|
||||||
nosexcover
|
|
||||||
coverage
|
|
||||||
nose
|
|
||||||
mock
|
|
||||||
funcsigs
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i s/pyyaml==3.13/pyyaml/g setup.cfg setup.py
|
|
||||||
sed -i s/pyyaml==3.12/pyyaml/g setup.cfg setup.py
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "urllib3>=1.24.2,<1.25" "urllib3"
|
|
||||||
substituteInPlace setup.cfg \
|
substituteInPlace setup.cfg \
|
||||||
--replace "urllib3>=1.24.2,<1.25" "urllib3"
|
--replace "urllib3==1.26.4" "urllib3"
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "urllib3==1.26.4" "urllib3" \
|
||||||
|
--replace "pyyaml==5.4.1" "pyyaml"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python.pkgs; [
|
||||||
|
elasticsearch
|
||||||
|
urllib3
|
||||||
|
requests
|
||||||
|
boto3
|
||||||
|
requests-aws4auth
|
||||||
|
click
|
||||||
|
pyyaml
|
||||||
|
voluptuous
|
||||||
|
certifi
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = with python.pkgs; [
|
||||||
|
mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
"test/integration" # requires running elasticsearch
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# access network
|
||||||
|
"test_api_key_not_set"
|
||||||
|
"test_api_key_set"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/elastic/curator";
|
homepage = "https://github.com/elastic/curator";
|
||||||
description = "Curate, or manage, your Elasticsearch indices and snapshots";
|
description = "Curate, or manage, your Elasticsearch indices and snapshots";
|
||||||
@ -76,8 +81,5 @@ buildPythonApplication rec {
|
|||||||
* Perform various actions on the items which remain in the actionable list.
|
* Perform various actions on the items which remain in the actionable list.
|
||||||
'';
|
'';
|
||||||
maintainers = with maintainers; [ basvandijk ];
|
maintainers = with maintainers; [ basvandijk ];
|
||||||
|
|
||||||
# https://github.com/elastic/curator/pull/1280
|
|
||||||
#broken = versionAtLeast click.version "7.0";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -5585,9 +5585,7 @@ with pkgs;
|
|||||||
elasticsearch = elasticsearch7;
|
elasticsearch = elasticsearch7;
|
||||||
};
|
};
|
||||||
|
|
||||||
elasticsearch-curator = callPackage ../tools/admin/elasticsearch-curator {
|
elasticsearch-curator = callPackage ../tools/admin/elasticsearch-curator { };
|
||||||
python = python3;
|
|
||||||
};
|
|
||||||
|
|
||||||
embree = callPackage ../development/libraries/embree { };
|
embree = callPackage ../development/libraries/embree { };
|
||||||
embree2 = callPackage ../development/libraries/embree/2.x.nix { };
|
embree2 = callPackage ../development/libraries/embree/2.x.nix { };
|
||||||
|
Loading…
Reference in New Issue
Block a user