Merge pull request #86056 from paumr/master-watson
watson: added bash/zsh completions
This commit is contained in:
commit
8e3a29d69e
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, pythonPackages, fetchpatch }:
|
{ stdenv, pythonPackages, fetchpatch, installShellFiles }:
|
||||||
|
|
||||||
with pythonPackages;
|
with pythonPackages;
|
||||||
|
|
||||||
@ -14,15 +14,21 @@ buildPythonApplication rec {
|
|||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pytest -vs tests
|
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 ];
|
checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
|
||||||
propagatedBuildInputs = [ requests click arrow ];
|
propagatedBuildInputs = [ requests click arrow ];
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://tailordev.github.io/Watson/";
|
homepage = "https://tailordev.github.io/Watson/";
|
||||||
description = "A wonderful CLI to track your time!";
|
description = "A wonderful CLI to track your time!";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ mguentner nathyong ] ;
|
maintainers = with maintainers; [ mguentner nathyong ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user