From d964e7ac2aeb781f6a725df0238faac0bbe18007 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 12:04:59 +0100 Subject: [PATCH 1/4] python311Packages.es-client: 8.12.5 -> 8.12.8 https://github.com/untergeek/es_client/compare/v8.12.5...v8.12.8 --- pkgs/development/python-modules/es-client/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/es-client/default.nix b/pkgs/development/python-modules/es-client/default.nix index f5b16097c26f..0a1b0bad5ad6 100644 --- a/pkgs/development/python-modules/es-client/default.nix +++ b/pkgs/development/python-modules/es-client/default.nix @@ -20,16 +20,16 @@ buildPythonPackage rec { pname = "es-client"; - version = "8.12.5"; + version = "8.12.8"; pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "untergeek"; repo = "es_client"; rev = "refs/tags/v${version}"; - hash = "sha256-gaeNIxHnNulUOGhYHf9dIgBSh2rJIdsYdpPT8OTyEdg="; + hash = "sha256-qv06zb3hIK/TeOZwtMXrV+n8mYSA/UKiyHvRyKEvZkQ="; }; pythonRelaxDeps = true; From ef35305c3bf36121323ab272af6ece231f5c20f1 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 11:56:02 +0100 Subject: [PATCH 2/4] elasticsearch-curator: add passthru.{tests.version,updateScript} --- pkgs/tools/admin/elasticsearch-curator/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/tools/admin/elasticsearch-curator/default.nix b/pkgs/tools/admin/elasticsearch-curator/default.nix index 60bd15ce71a6..dacec5a76779 100644 --- a/pkgs/tools/admin/elasticsearch-curator/default.nix +++ b/pkgs/tools/admin/elasticsearch-curator/default.nix @@ -1,6 +1,9 @@ { lib +, elasticsearch-curator , fetchFromGitHub +, nix-update-script , python3 +, testers }: python3.pkgs.buildPythonApplication rec { @@ -76,6 +79,14 @@ python3.pkgs.buildPythonApplication rec { "test_api_key_set" ]; + passthru = { + tests.version = testers.testVersion { + package = elasticsearch-curator; + command = "${lib.getExe elasticsearch-curator} --version"; + }; + updateScript = nix-update-script { }; + }; + meta = with lib; { description = "Curate, or manage, your Elasticsearch indices and snapshots"; homepage = "https://github.com/elastic/curator"; @@ -93,6 +104,7 @@ python3.pkgs.buildPythonApplication rec { * Perform various actions on the items which remain in the actionable list. ''; + mainProgram = "curator"; maintainers = with maintainers; [ basvandijk ]; }; } From 303ec90277b42e2d08611f7aa23fa852f2d1cc57 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 11:56:15 +0100 Subject: [PATCH 3/4] elasticsearch-curator: 8.0.10 -> 8.0.12 https://github.com/elastic/curator/compare/v8.0.10...v8.0.12 --- .../admin/elasticsearch-curator/default.nix | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/pkgs/tools/admin/elasticsearch-curator/default.nix b/pkgs/tools/admin/elasticsearch-curator/default.nix index dacec5a76779..3e12c03cbece 100644 --- a/pkgs/tools/admin/elasticsearch-curator/default.nix +++ b/pkgs/tools/admin/elasticsearch-curator/default.nix @@ -8,30 +8,21 @@ python3.pkgs.buildPythonApplication rec { pname = "elasticsearch-curator"; - version = "8.0.10"; + version = "8.0.12"; format = "pyproject"; src = fetchFromGitHub { owner = "elastic"; repo = "curator"; rev = "refs/tags/v${version}"; - hash = "sha256-hGG7lyrVviZSKTUo+AOPIutn/mxtDo+ewFxCRdj/jts="; + hash = "sha256-CU/8l5607eKodcdpMKu0Wdlg+K6YnFX6uoDju12NDR0="; }; - 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; [ + build-system = with python3.pkgs; [ hatchling ]; - propagatedBuildInputs = with python3.pkgs; [ + dependencies = with python3.pkgs; [ certifi click ecs-logging @@ -43,7 +34,6 @@ python3.pkgs.buildPythonApplication rec { ]; nativeCheckInputs = with python3.pkgs; [ - mock requests pytestCheckHook ]; From 2ac8d67212c46e60f8383bed96a107c9cd309e48 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 12:07:00 +0100 Subject: [PATCH 4/4] elasticsearch-curator: move to by-name --- .../el/elasticsearch-curator/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{tools/admin/elasticsearch-curator/default.nix => by-name/el/elasticsearch-curator/package.nix} (100%) diff --git a/pkgs/tools/admin/elasticsearch-curator/default.nix b/pkgs/by-name/el/elasticsearch-curator/package.nix similarity index 100% rename from pkgs/tools/admin/elasticsearch-curator/default.nix rename to pkgs/by-name/el/elasticsearch-curator/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0ba4229909c3..c0d49b6f631f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7877,8 +7877,6 @@ with pkgs; callPackage ../servers/search/elasticsearch/plugins.nix {} ); - elasticsearch-curator = callPackage ../tools/admin/elasticsearch-curator { }; - embree = callPackage ../development/libraries/embree { }; embree2 = callPackage ../development/libraries/embree/2.x.nix { };