blob: 092cb32999905f56ecc2af53e0ec4dbed78cf8b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
{ lib
, python3
, fetchFromGitHub
, glibcLocales
, libnotify
}:
let
py = python3.override {
packageOverrides = self: super: {
# Requires "urwid~=2.1.2", otherwise some tests are failing
urwid = super.urwid.overridePythonAttrs (oldAttrs: rec {
version = "2.1.2";
src = fetchFromGitHub {
owner = "urwid";
repo = "urwid";
rev = "refs/tags/${version}";
hash = "sha256-oPb2h/+gaqkZTXIiESjExMfBNnOzDvoMkXvkZ/+KVwo=";
};
doCheck = false;
});
};
};
in
with py.pkgs;
buildPythonApplication rec {
pname = "zulip-term";
version = "0.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "zulip";
repo = "zulip-terminal";
rev = "refs/tags/${version}";
hash = "sha256-ZouUU4p1FSGMxPuzDo5P971R+rDXpBdJn2MqvkJO+Fw=";
};
patches = [
./pytest-executable-name.patch
];
nativeBuildInputs = with py.pkgs; [
setuptools
];
propagatedBuildInputs = with py.pkgs; [
beautifulsoup4
lxml
pygments
pyperclip
python-dateutil
pytz
typing-extensions
tzlocal
urwid
urwid-readline
zulip
];
nativeCheckInputs = [
glibcLocales
] ++ (with python3.pkgs; [
pytestCheckHook
pytest-cov
pytest-mock
]);
makeWrapperArgs = [
"--prefix" "PATH" ":" (lib.makeBinPath [ libnotify ])
];
meta = with lib; {
description = "Zulip's official terminal client";
homepage = "https://github.com/zulip/zulip-terminal";
changelog = "https://github.com/zulip/zulip-terminal/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}
|