python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / admin / iredis / default.nix
blob7e2db982cf9f03a502305071f884b35b90443df6
1 { lib, python3Packages }:
3 with python3Packages;
5 buildPythonApplication rec {
6   pname = "iredis";
7   version = "1.12.1";
9   src = fetchPypi {
10     inherit pname version;
11     sha256 = "sha256-nLwu47wV5QqgtiyiN9bbKzjlZdgd6Qt5KjBlipwRW1Q=";
12   };
14   postPatch = ''
15     substituteInPlace setup.py \
16       --replace "click>=7.0,<8.0" "click" \
17       --replace "wcwidth==0.1.9" "wcwidth" \
18       --replace "redis>=3.4.0,<4.0.0" "redis"
19   '';
21   propagatedBuildInputs = [
22     pygments
23     click
24     configobj
25     importlib-resources
26     mistune
27     packaging
28     pendulum
29     prompt-toolkit
30     redis
31     wcwidth
32   ];
34   checkInputs = [
35     pytestCheckHook
36     pexpect
37   ];
39   pytestFlagsArray = [
40     # Fails on sandbox
41     "--ignore=tests/unittests/test_client.py"
42     "--deselect=tests/unittests/test_render_functions.py::test_render_unixtime_config_raw"
43     "--deselect=tests/unittests/test_render_functions.py::test_render_time"
44     # Only execute unittests, because cli tests require a running Redis
45     "tests/unittests/"
46   ];
48   pythonImportsCheck = [ "iredis" ];
50   meta = with lib; {
51     description = "A Terminal Client for Redis with AutoCompletion and Syntax Highlighting";
52     changelog = "https://github.com/laixintao/iredis/raw/v${version}/CHANGELOG.md";
53     homepage = "https://iredis.io/";
54     license = licenses.bsd3;
55     maintainers = with maintainers; [ marsam ];
56   };