Skip to content

Commit

Permalink
watson: added bash/zsh completions
Browse files Browse the repository at this point in the history
  • Loading branch information
paumr committed Apr 28, 2020
1 parent 7c18590 commit 2d0a063
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/applications/office/watson/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{ stdenv, pythonPackages, fetchpatch, installShellFiles }:

with pythonPackages;

Expand All @@ -15,8 +16,14 @@ buildPythonApplication rec {
pytest -vs tests
'';

postInstall = ''
installShellCompletion --bash --name watson watson.completion
installShellCompletion --zsh --name _watson watson.zsh-completion
'';

checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
propagatedBuildInputs = [ requests click arrow ];
nativeBuildInputs = [ installShellFiles ];

meta = with stdenv.lib; {
homepage = "https://tailordev.github.io/Watson/";
Expand Down

0 comments on commit 2d0a063

Please sign in to comment.