blob: 63ef42e99c8bdf15b9f26c042ae5c8bb8ebe5997 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{ lib, python3Packages, fetchPypi }:
with python3Packages;
buildPythonApplication rec {
pname = "iredis";
version = "1.13.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "d1e4e7936d0be456f70a39abeb1c97d931f66ccd60e891f4fd796ffb06dfeaf9";
};
pythonRelaxDeps = [
"configobj"
"wcwidth"
"click"
"packaging"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
pygments
click
configobj
importlib-resources
mistune
packaging
pendulum
prompt-toolkit
redis
wcwidth
];
nativeCheckInputs = [
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"
"--deselect=tests/unittests/test_entry.py::test_command_shell_options_higher_priority"
# Only execute unittests, because cli tests require a running Redis
"tests/unittests/"
];
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 ];
};
}
|