Merge pull request #58031 from dotlambda/elasticsearch-curator-application
elasticsearch-curator: add top-level package using older click
This commit is contained in:
commit
78c95f561f
@ -86,7 +86,7 @@ in {
|
|||||||
startAt = cfg.interval;
|
startAt = cfg.interval;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart =
|
ExecStart =
|
||||||
"${pkgs.python3Packages.elasticsearch-curator}/bin/curator" +
|
"${pkgs.elasticsearch-curator}/bin/curator" +
|
||||||
" --config ${curatorConfig} ${curatorAction}";
|
" --config ${curatorConfig} ${curatorAction}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -13,7 +13,7 @@ let
|
|||||||
inherit version;
|
inherit version;
|
||||||
sha256 = "678c98275431fad324275dec63791e4a17558b40e5a110e20a82866139a85a5a";
|
sha256 = "678c98275431fad324275dec63791e4a17558b40e5a110e20a82866139a85a5a";
|
||||||
};
|
};
|
||||||
patches = [];
|
postPatch = "";
|
||||||
});
|
});
|
||||||
|
|
||||||
platformio = self.callPackage ./core.nix { };
|
platformio = self.callPackage ./core.nix { };
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, substituteAll, locale, pytest }:
|
{ lib, buildPythonPackage, fetchPypi, substituteAll, locale, pytest }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "click";
|
pname = "click";
|
||||||
@ -10,10 +10,10 @@ buildPythonPackage rec {
|
|||||||
sha256 = "5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7";
|
sha256 = "5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = stdenv.lib.optional (stdenv.lib.versionAtLeast version "6.7") (substituteAll {
|
postPatch = ''
|
||||||
src = ./fix-paths.patch;
|
substituteInPlace click/_unicodefun.py \
|
||||||
locale = "${locale}/bin/locale";
|
--replace "'locale'" "'${locale}/bin/locale'"
|
||||||
});
|
'';
|
||||||
|
|
||||||
buildInputs = [ pytest ];
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ buildPythonPackage rec {
|
|||||||
# https://github.com/pallets/click/issues/823
|
# https://github.com/pallets/click/issues/823
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
homepage = http://click.pocoo.org/;
|
homepage = http://click.pocoo.org/;
|
||||||
description = "Create beautiful command line interfaces in Python";
|
description = "Create beautiful command line interfaces in Python";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/click/_unicodefun.py b/click/_unicodefun.py
|
|
||||||
index 620edff..85a3c98 100644
|
|
||||||
--- a/click/_unicodefun.py
|
|
||||||
+++ b/click/_unicodefun.py
|
|
||||||
@@ -63,7 +63,7 @@ def _verify_python3_env():
|
|
||||||
if os.name == 'posix':
|
|
||||||
import subprocess
|
|
||||||
try:
|
|
||||||
- rv = subprocess.Popen(['locale', '-a'], stdout=subprocess.PIPE,
|
|
||||||
+ rv = subprocess.Popen(['@locale@', '-a'], stdout=subprocess.PIPE,
|
|
||||||
stderr=subprocess.PIPE).communicate()[0]
|
|
||||||
except OSError:
|
|
||||||
rv = b''
|
|
@ -45,13 +45,6 @@ buildPythonPackage rec {
|
|||||||
funcsigs
|
funcsigs
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.cfg \
|
|
||||||
--replace 'click>=6.7,<7.0' 'click'
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace 'click>=6.7,<7.0' 'click'
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.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";
|
||||||
@ -69,5 +62,8 @@ buildPythonPackage 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";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2540,6 +2540,18 @@ in
|
|||||||
callPackage ../servers/search/elasticsearch/plugins.nix { }
|
callPackage ../servers/search/elasticsearch/plugins.nix { }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
elasticsearch-curator = with (python3.override {
|
||||||
|
packageOverrides = self: super: {
|
||||||
|
click = super.click.overridePythonAttrs (oldAttrs: rec {
|
||||||
|
version = "6.7";
|
||||||
|
src = oldAttrs.src.override {
|
||||||
|
inherit version;
|
||||||
|
sha256 = "f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}).pkgs; toPythonApplication elasticsearch-curator;
|
||||||
|
|
||||||
embree2 = callPackage ../development/libraries/embree/2.x.nix { };
|
embree2 = callPackage ../development/libraries/embree/2.x.nix { };
|
||||||
|
|
||||||
emem = callPackage ../applications/misc/emem { };
|
emem = callPackage ../applications/misc/emem { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user