zulip-term: 0.6.0 -> 0.7.0

This commit is contained in:
Jonas Heinrich 2022-07-08 14:18:48 +02:00 committed by Yt
parent 2349dd5cb2
commit d7da02c1e0
2 changed files with 14 additions and 23 deletions

View file

@ -7,30 +7,28 @@
python3.pkgs.buildPythonApplication rec {
pname = "zulip-term";
version = "0.6.0";
version = "0.7.0";
# no tests on PyPI
src = fetchFromGitHub {
owner = "zulip";
repo = "zulip-terminal";
rev = version;
sha256 = "sha256-nlvZaGMVRRCu8PZHxPWjNSxkqhZs0T/tE1js/3pDUFk=";
sha256 = "sha256-ZouUU4p1FSGMxPuzDo5P971R+rDXpBdJn2MqvkJO+Fw=";
};
patches = [
./pytest-executable-name.patch
];
propagatedBuildInputs = with python3.pkgs; [
urwid
zulip
urwid-readline
beautifulsoup4
lxml
typing-extensions
pygments
pyperclip
python-dateutil
pytz
typing-extensions
tzlocal
urwid
urwid-readline
zulip
];
checkInputs = [
@ -45,6 +43,12 @@ python3.pkgs.buildPythonApplication rec {
"--prefix" "PATH" ":" (lib.makeBinPath [ libnotify ])
];
disabledTests = [
# IndexError: list index out of range
"test_main_multiple_notify_options"
"test_main_multiple_autohide_options"
];
meta = with lib; {
description = "Zulip's official terminal client";
homepage = "https://github.com/zulip/zulip-terminal";

View file

@ -1,13 +0,0 @@
diff --git a/tests/cli/test_run.py b/tests/cli/test_run.py
index 459aa82..c6e434e 100644
--- a/tests/cli/test_run.py
+++ b/tests/cli/test_run.py
@@ -180,7 +180,7 @@ def test_main_multiple_autohide_options(capsys, options):
assert str(e.value) == "2"
captured = capsys.readouterr()
lines = captured.err.strip('\n')
- lines = lines.split("pytest: ", 1)[1]
+ lines = lines.split("__main__.py: ", 1)[1]
expected = ("error: argument {}: not allowed "
"with argument {}".format(options[1], options[0]))
assert lines == expected