nixpkgs/pkgs/applications/networking/instant-messengers/zulip-term/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

56 lines
1 KiB
Nix

{ lib
, python3
, fetchFromGitHub
, glibcLocales
, libnotify
}:
python3.pkgs.buildPythonApplication rec {
pname = "zulip-term";
version = "0.7.0";
# no tests on PyPI
src = fetchFromGitHub {
owner = "zulip";
repo = "zulip-terminal";
rev = version;
sha256 = "sha256-ZouUU4p1FSGMxPuzDo5P971R+rDXpBdJn2MqvkJO+Fw=";
};
patches = [
./pytest-executable-name.patch
];
propagatedBuildInputs = with python3.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";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}