about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/zulip-term
diff options
context:
space:
mode:
authorJonas Heinrich <onny@project-insanity.org>2022-07-08 14:18:48 +0200
committerYt <happysalada@proton.me>2022-07-12 10:06:05 -0400
commitd7da02c1e0948229a13d98559da7c955231102c9 (patch)
treee7de435b8355190e1eb83e76bacd1411c68e50f3 /pkgs/applications/networking/instant-messengers/zulip-term
parent2349dd5cb24516730e811929f99a4dca453f4000 (diff)
zulip-term: 0.6.0 -> 0.7.0
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/zulip-term')
-rw-r--r--pkgs/applications/networking/instant-messengers/zulip-term/default.nix24
-rw-r--r--pkgs/applications/networking/instant-messengers/zulip-term/pytest-executable-name.patch13
2 files changed, 14 insertions, 23 deletions
diff --git a/pkgs/applications/networking/instant-messengers/zulip-term/default.nix b/pkgs/applications/networking/instant-messengers/zulip-term/default.nix
index 1775ce9a48179..ad16c84c69894 100644
--- a/pkgs/applications/networking/instant-messengers/zulip-term/default.nix
+++ b/pkgs/applications/networking/instant-messengers/zulip-term/default.nix
@@ -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";
diff --git a/pkgs/applications/networking/instant-messengers/zulip-term/pytest-executable-name.patch b/pkgs/applications/networking/instant-messengers/zulip-term/pytest-executable-name.patch
deleted file mode 100644
index 4602a254ab88a..0000000000000
--- a/pkgs/applications/networking/instant-messengers/zulip-term/pytest-executable-name.patch
+++ /dev/null
@@ -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