From 5b07b1005bde41926e4645645fb3302a733ccbfc Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Mon, 15 Apr 2024 04:20:00 +0000 Subject: [PATCH 1/4] iredis: migrate to by-name --- .../admin/iredis/default.nix => by-name/ir/iredis/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{tools/admin/iredis/default.nix => by-name/ir/iredis/package.nix} (100%) diff --git a/pkgs/tools/admin/iredis/default.nix b/pkgs/by-name/ir/iredis/package.nix similarity index 100% rename from pkgs/tools/admin/iredis/default.nix rename to pkgs/by-name/ir/iredis/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cc561f15417a..f74071049959 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10231,8 +10231,6 @@ with pkgs; ktailctl = kdePackages.callPackage ../applications/networking/ktailctl {}; - iredis = callPackage ../tools/admin/iredis { }; - ispell = callPackage ../tools/text/ispell { }; iodash = callPackage ../development/libraries/iodash { }; From 180cf46b4c0bc2edce78db2a5fef601103826699 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Mon, 15 Apr 2024 04:20:00 +0000 Subject: [PATCH 2/4] iredis: 1.14.1 -> 1.15.0 Diff: https://github.com/laixintao/iredis/compare/v1.14.1...v1.15.0 Changelog: https://github.com/laixintao/iredis/raw/v1.15.0/CHANGELOG.md --- pkgs/by-name/ir/iredis/package.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/ir/iredis/package.nix b/pkgs/by-name/ir/iredis/package.nix index 2c57aa166978..b9f530bf2a58 100644 --- a/pkgs/by-name/ir/iredis/package.nix +++ b/pkgs/by-name/ir/iredis/package.nix @@ -6,18 +6,19 @@ python3.pkgs.buildPythonApplication rec { pname = "iredis"; - version = "1.14.1"; + version = "1.15.0"; pyproject = true; src = fetchFromGitHub { owner = "laixintao"; repo = "iredis"; - rev = "refs/tags/v${version}"; - hash = "sha256-ojS2wtxggZPp73n9SjPRAzBlnF1ScK/pNVGvAYKmQ5Y="; + rev = "v${version}"; + hash = "sha256-wfjr/FVmKgkP8FMKxw6e8U+lfZQZ2q52REC0mU8Xp7Q="; }; postPatch = '' substituteInPlace pyproject.toml \ + --replace-fail 'packaging = "^23.0"' 'packaging = "*"' \ --replace-fail 'wcwidth = "0.1.9"' 'wcwidth = "*"' ''; @@ -26,20 +27,21 @@ python3.pkgs.buildPythonApplication rec { ]; propagatedBuildInputs = with python3.pkgs; [ - pygments click configobj mistune packaging - pendulum prompt-toolkit + pygments + python-dateutil redis wcwidth ]; nativeCheckInputs = with python3.pkgs; [ - pytestCheckHook + freezegun pexpect + pytestCheckHook ]; pytestFlagsArray = [ From a69122c37de6c44e6beaf6b95dab312f53ac741d Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Mon, 15 Apr 2024 04:20:00 +0000 Subject: [PATCH 3/4] iredis: update meta --- pkgs/by-name/ir/iredis/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ir/iredis/package.nix b/pkgs/by-name/ir/iredis/package.nix index b9f530bf2a58..7d0829022665 100644 --- a/pkgs/by-name/ir/iredis/package.nix +++ b/pkgs/by-name/ir/iredis/package.nix @@ -60,8 +60,8 @@ python3.pkgs.buildPythonApplication rec { meta = with lib; { description = "A Terminal Client for Redis with AutoCompletion and Syntax Highlighting"; - changelog = "https://github.com/laixintao/iredis/raw/${src.rev}/CHANGELOG.md"; - homepage = "https://iredis.io/"; + changelog = "https://github.com/laixintao/iredis/blob/${src.rev}/CHANGELOG.md"; + homepage = "https://iredis.xbin.io/"; license = licenses.bsd3; maintainers = with maintainers; [ marsam ]; mainProgram = "iredis"; From 38b8f65d4c5370d177bfb4ddbef1e2e96f39fb33 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Mon, 15 Apr 2024 04:20:00 +0000 Subject: [PATCH 4/4] iredis: fix build on x86_64-darwin --- pkgs/by-name/ir/iredis/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ir/iredis/package.nix b/pkgs/by-name/ir/iredis/package.nix index 7d0829022665..6946abf5077a 100644 --- a/pkgs/by-name/ir/iredis/package.nix +++ b/pkgs/by-name/ir/iredis/package.nix @@ -52,7 +52,8 @@ python3.pkgs.buildPythonApplication rec { # Only execute unittests, because cli tests require a running Redis "tests/unittests/" ] ++ lib.optionals stdenv.isDarwin [ - # Flaky test + # Flaky tests + "--deselect=tests/unittests/test_entry.py::test_command_shell_options_higher_priority" "--deselect=tests/unittests/test_utils.py::test_timer" ];