nixpkgs/pkgs/tools/admin/iredis/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.6 KiB
Nix
Raw Normal View History

2023-05-25 18:37:59 +00:00
{ lib, python3Packages, fetchPypi }:
2022-07-14 00:04:20 +00:00
with python3Packages;
buildPythonApplication rec {
pname = "iredis";
version = "1.13.1";
2023-01-03 04:20:00 +00:00
format = "pyproject";
2022-07-14 00:04:20 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-MWzbmuxUKh0yBgar1gk8QGJQwbHtINsbCsbTM+RLmQo=";
2022-07-14 00:04:20 +00:00
};
pythonRelaxDeps = [
"configobj"
"wcwidth"
"click"
"packaging"
];
2022-07-14 00:04:20 +00:00
2023-01-03 04:20:00 +00:00
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
2023-01-03 04:20:00 +00:00
];
2022-07-14 00:04:20 +00:00
propagatedBuildInputs = [
pygments
click
configobj
importlib-resources
mistune
2022-07-14 00:04:20 +00:00
packaging
pendulum
prompt-toolkit
redis
wcwidth
];
nativeCheckInputs = [
2022-07-14 00:04:20 +00:00
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"
2023-01-03 04:20:00 +00:00
"--deselect=tests/unittests/test_entry.py::test_command_shell_options_higher_priority"
2022-07-14 00:04:20 +00:00
# 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"
2022-07-14 00:04:20 +00:00
];
pythonImportsCheck = [ "iredis" ];
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";
homepage = "https://iredis.io/";
license = licenses.bsd3;
maintainers = with maintainers; [ marsam ];
};
}