bdb699719e
Diff: https://github.com/laixintao/iredis/compare/refs/tags/v1.14.0...v1.14.1 Changelog: https://github.com/laixintao/iredis/raw/refs/tags/v1.14.1/CHANGELOG.md
67 lines
1.6 KiB
Nix
67 lines
1.6 KiB
Nix
{ lib
|
|
, stdenv
|
|
, python3
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "iredis";
|
|
version = "1.14.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "laixintao";
|
|
repo = "iredis";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ojS2wtxggZPp73n9SjPRAzBlnF1ScK/pNVGvAYKmQ5Y=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail 'wcwidth = "0.1.9"' 'wcwidth = "*"'
|
|
'';
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pygments
|
|
click
|
|
configobj
|
|
mistune
|
|
packaging
|
|
pendulum
|
|
prompt-toolkit
|
|
redis
|
|
wcwidth
|
|
];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
pytestCheckHook
|
|
pexpect
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
# Fails on sandbox
|
|
"--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"
|
|
# Only execute unittests, because cli tests require a running Redis
|
|
"tests/unittests/"
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
# Flaky test
|
|
"--deselect=tests/unittests/test_utils.py::test_timer"
|
|
];
|
|
|
|
pythonImportsCheck = [ "iredis" ];
|
|
|
|
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/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ marsam ];
|
|
mainProgram = "iredis";
|
|
};
|
|
}
|