python.pkgs.poetry: install shell completions (#56459)
This commit is contained in:
parent
f7003e5390
commit
d4195072ad
@ -60,6 +60,15 @@ in buildPythonPackage rec {
|
|||||||
] ++ lib.optionals (isPy27 || isPy34) [ typing pathlib2 ]
|
] ++ lib.optionals (isPy27 || isPy34) [ typing pathlib2 ]
|
||||||
++ lib.optionals isPy27 [ virtualenv functools32 ];
|
++ lib.optionals isPy27 [ virtualenv functools32 ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p "$out/share/bash-completion/completions"
|
||||||
|
"$out/bin/poetry" completions bash > "$out/share/bash-completion/completions/poetry"
|
||||||
|
mkdir -p "$out/share/zsh/vendor-completions"
|
||||||
|
"$out/bin/poetry" completions zsh > "$out/share/zsh/vendor-completions/_poetry"
|
||||||
|
mkdir -p "$out/share/fish/vendor_completions.d"
|
||||||
|
"$out/bin/poetry" completions fish > "$out/share/fish/vendor_completions.d/poetry.fish"
|
||||||
|
'';
|
||||||
|
|
||||||
# No tests in Pypi tarball
|
# No tests in Pypi tarball
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user