From 7e70581f8b949103f05678245cfe63563c6ca294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 15 Sep 2023 09:35:02 -0700 Subject: [PATCH] iredis: 1.13.1 -> 1.13.2 Changelog: https://github.com/laixintao/iredis/raw/v1.13.2/CHANGELOG.md --- pkgs/tools/admin/iredis/default.nix | 30 +++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/pkgs/tools/admin/iredis/default.nix b/pkgs/tools/admin/iredis/default.nix index d8b8e634fb3f..bc38b606b2e7 100644 --- a/pkgs/tools/admin/iredis/default.nix +++ b/pkgs/tools/admin/iredis/default.nix @@ -1,15 +1,19 @@ -{ lib, python3Packages, fetchPypi }: +{ lib +, stdenv +, python3 +, fetchFromGitHub +}: -with python3Packages; - -buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "iredis"; - version = "1.13.1"; + version = "1.13.2"; format = "pyproject"; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-MWzbmuxUKh0yBgar1gk8QGJQwbHtINsbCsbTM+RLmQo="; + src = fetchFromGitHub { + owner = "laixintao"; + repo = "iredis"; + rev = "refs/tags/v${version}"; + hash = "sha256-dGOB7emhuP+V0pHlSdS1L1OC4jO3jtf5RFOy0UFYiuY="; }; pythonRelaxDeps = [ @@ -19,16 +23,15 @@ buildPythonApplication rec { "packaging" ]; - nativeBuildInputs = [ + nativeBuildInputs = with python3.pkgs; [ poetry-core pythonRelaxDepsHook ]; - propagatedBuildInputs = [ + propagatedBuildInputs = with python3.pkgs; [ pygments click configobj - importlib-resources mistune packaging pendulum @@ -37,7 +40,7 @@ buildPythonApplication rec { wcwidth ]; - nativeCheckInputs = [ + nativeCheckInputs = with python3.pkgs; [ pytestCheckHook pexpect ]; @@ -47,7 +50,6 @@ buildPythonApplication rec { "--ignore=tests/unittests/test_client.py" "--deselect=tests/unittests/test_render_functions.py::test_render_unixtime_config_raw" "--deselect=tests/unittests/test_render_functions.py::test_render_time" - "--deselect=tests/unittests/test_entry.py::test_command_shell_options_higher_priority" # Only execute unittests, because cli tests require a running Redis "tests/unittests/" ] ++ lib.optionals stdenv.isDarwin [ @@ -59,7 +61,7 @@ buildPythonApplication rec { meta = with lib; { description = "A Terminal Client for Redis with AutoCompletion and Syntax Highlighting"; - changelog = "https://github.com/laixintao/iredis/raw/v${version}/CHANGELOG.md"; + changelog = "https://github.com/laixintao/iredis/raw/${src.rev}/CHANGELOG.md"; homepage = "https://iredis.io/"; license = licenses.bsd3; maintainers = with maintainers; [ marsam ];