aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/networking/instant-messengers/zulip-term/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/instant-messengers/zulip-term/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/networking/instant-messengers/zulip-term/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/instant-messengers/zulip-term/default.nix b/nixpkgs/pkgs/applications/networking/instant-messengers/zulip-term/default.nix
new file mode 100644
index 00000000000..8f4b2200cc5
--- /dev/null
+++ b/nixpkgs/pkgs/applications/networking/instant-messengers/zulip-term/default.nix
@@ -0,0 +1,46 @@
+{ lib
+, python3
+, fetchFromGitHub
+, glibcLocales
+}:
+
+python3.pkgs.buildPythonApplication rec {
+ pname = "zulip-term";
+ version = "0.5.2";
+
+ # no tests on PyPI
+ src = fetchFromGitHub {
+ owner = "zulip";
+ repo = "zulip-terminal";
+ rev = version;
+ sha256 = "1xhhy3v4wck74a83avil0rnmsi2grrh03cww19n5mv80p2q1cjmf";
+ };
+
+ patches = [
+ ./pytest-executable-name.patch
+ ];
+
+ propagatedBuildInputs = with python3.pkgs; [
+ urwid
+ zulip
+ urwid-readline
+ beautifulsoup4
+ lxml
+ mypy-extensions
+ ];
+
+ checkInputs = [
+ glibcLocales
+ ] ++ (with python3.pkgs; [
+ pytestCheckHook
+ pytestcov
+ pytest-mock
+ ]);
+
+ meta = with lib; {
+ description = "Zulip's official terminal client";
+ homepage = "https://github.com/zulip/zulip-terminal";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ dotlambda ];
+ };
+}