|
|
@ -1,63 +1,68 @@ |
|
|
|
{ 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. |
|
|
|
postPatch = '' |
|
|
|
doCheck = false; |
|
|
|
substituteInPlace setup.cfg \ |
|
|
|
|
|
|
|
--replace "urllib3==1.26.4" "urllib3" |
|
|
|
|
|
|
|
substituteInPlace setup.py \ |
|
|
|
|
|
|
|
--replace "urllib3==1.26.4" "urllib3" \ |
|
|
|
|
|
|
|
--replace "pyyaml==5.4.1" "pyyaml" |
|
|
|
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
propagatedBuildInputs = with python.pkgs; [ |
|
|
|
click |
|
|
|
|
|
|
|
certifi |
|
|
|
|
|
|
|
requests-aws4auth |
|
|
|
|
|
|
|
pyopenssl |
|
|
|
|
|
|
|
voluptuous |
|
|
|
|
|
|
|
pyyaml |
|
|
|
|
|
|
|
elasticsearch |
|
|
|
elasticsearch |
|
|
|
|
|
|
|
urllib3 |
|
|
|
|
|
|
|
requests |
|
|
|
boto3 |
|
|
|
boto3 |
|
|
|
|
|
|
|
requests-aws4auth |
|
|
|
|
|
|
|
click |
|
|
|
|
|
|
|
pyyaml |
|
|
|
|
|
|
|
voluptuous |
|
|
|
|
|
|
|
certifi |
|
|
|
|
|
|
|
six |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
checkInputs = [ |
|
|
|
checkInputs = with python.pkgs; [ |
|
|
|
nosexcover |
|
|
|
|
|
|
|
coverage |
|
|
|
|
|
|
|
nose |
|
|
|
|
|
|
|
mock |
|
|
|
mock |
|
|
|
funcsigs |
|
|
|
pytestCheckHook |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
postPatch = '' |
|
|
|
disabledTestPaths = [ |
|
|
|
sed -i s/pyyaml==3.13/pyyaml/g setup.cfg setup.py |
|
|
|
"test/integration" # requires running elasticsearch |
|
|
|
sed -i s/pyyaml==3.12/pyyaml/g setup.cfg setup.py |
|
|
|
]; |
|
|
|
substituteInPlace setup.py \ |
|
|
|
|
|
|
|
--replace "urllib3>=1.24.2,<1.25" "urllib3" |
|
|
|
disabledTests = [ |
|
|
|
substituteInPlace setup.cfg \ |
|
|
|
# access network |
|
|
|
--replace "urllib3>=1.24.2,<1.25" "urllib3" |
|
|
|
"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"; |
|
|
@ -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"; |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|