Merge pull request #86056 from paumr/master-watson

watson: added bash/zsh completions
This commit is contained in:
Jörg Thalheim 2020-04-28 11:52:37 +01:00 committed by GitHub
commit 8e3a29d69e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ stdenv, pythonPackages, fetchpatch }:
{ stdenv, pythonPackages, fetchpatch, installShellFiles }:
with pythonPackages;
@ -16,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/";