nixpkgs-suyu/pkgs/applications/networking/instant-messengers/zulip-term/default.nix

54 lines
1,001 B
Nix
Raw Normal View History

2020-09-12 01:36:36 +02:00
{ lib
, python3
, fetchFromGitHub
, glibcLocales
2021-05-20 14:47:29 +02:00
, libnotify
2020-09-12 01:36:36 +02:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "zulip-term";
2021-03-13 22:29:18 +01:00
version = "0.6.0";
2020-09-12 01:36:36 +02:00
# no tests on PyPI
src = fetchFromGitHub {
owner = "zulip";
repo = "zulip-terminal";
rev = version;
2021-03-13 22:29:18 +01:00
sha256 = "sha256-nlvZaGMVRRCu8PZHxPWjNSxkqhZs0T/tE1js/3pDUFk=";
2020-09-12 01:36:36 +02:00
};
patches = [
./pytest-executable-name.patch
];
propagatedBuildInputs = with python3.pkgs; [
urwid
zulip
urwid-readline
beautifulsoup4
lxml
2021-03-13 22:29:18 +01:00
typing-extensions
python-dateutil
tzlocal
2020-09-12 01:36:36 +02:00
];
checkInputs = [
glibcLocales
] ++ (with python3.pkgs; [
pytestCheckHook
pytest-cov
2020-09-12 01:36:36 +02:00
pytest-mock
]);
2021-05-20 14:47:29 +02:00
makeWrapperArgs = [
"--prefix" "PATH" ":" (lib.makeBinPath [ libnotify ])
];
2020-09-12 01:36:36 +02:00
meta = with lib; {
description = "Zulip's official terminal client";
homepage = "https://github.com/zulip/zulip-terminal";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}