watson: added bash/zsh completions
This commit is contained in:
parent
7c18590208
commit
2d0a06377a
1 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
{ stdenv, pythonPackages, fetchpatch, installShellFiles }:
|
||||
|
||||
with pythonPackages;
|
||||
|
||||
|
@ -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/";
|
||||
|
|
Loading…
Reference in a new issue