platformio: Enable shell completion generation

The `platformio system completion install` command relies on the
click-completion python package to derive completions from the current
click argument logic. When this command is ran, it currently errors on
pip exceptions. If a nix-shell is used to run this command with
click-completion installed, shell completion is broken when outside
of the nix-shell.
This commit is contained in:
Kyle Kneitinger 2020-12-17 23:22:40 -08:00
parent 85298db412
commit 90041a0645

View File

@ -1,5 +1,5 @@
{ stdenv, lib, buildPythonApplication, fetchpatch
, bottle, click, colorama, semantic-version
{ stdenv, lib, buildPythonApplication, bottle
, click, click-completion, colorama, semantic-version
, lockfile, pyserial, requests
, tabulate, pyelftools, marshmallow
, pytest, tox, jsondiff
@ -79,8 +79,8 @@ in buildPythonApplication rec {
inherit version src;
propagatedBuildInputs = [
bottle click colorama git lockfile
pyserial requests semantic-version
bottle click click-completion colorama git
lockfile pyserial requests semantic-version
tabulate pyelftools marshmallow
];