mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
243053e521
Remove mistune_0_8 because it's insecure.
58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
{ lib, python3Packages }:
|
|
|
|
with python3Packages;
|
|
|
|
buildPythonApplication rec {
|
|
pname = "iredis";
|
|
version = "1.12.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-nLwu47wV5QqgtiyiN9bbKzjlZdgd6Qt5KjBlipwRW1Q=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "click>=7.0,<8.0" "click" \
|
|
--replace "wcwidth==0.1.9" "wcwidth" \
|
|
--replace "redis>=3.4.0,<4.0.0" "redis"
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
pygments
|
|
click
|
|
configobj
|
|
importlib-resources
|
|
mistune
|
|
packaging
|
|
pendulum
|
|
prompt-toolkit
|
|
redis
|
|
wcwidth
|
|
];
|
|
|
|
checkInputs = [
|
|
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/"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|