python312Packages.trezorctl: remove empty shell completions

This commit is contained in:
natsukium
2024-06-24 12:18:29 +02:00
committed by Martin Weinelt
parent 0e1d9a6d85
commit db5708ed00
@@ -4,7 +4,6 @@
buildPythonPackage,
fetchPypi,
isPy3k,
installShellFiles,
attrs,
click,
construct,
@@ -35,8 +34,6 @@ buildPythonPackage rec {
hash = "sha256-Y01O3fNWAyV8MhYY2FSMajWyc4Rle2XjsL261jWlfP8=";
};
nativeBuildInputs = [ installShellFiles ];
propagatedBuildInputs = [
attrs
click
@@ -67,16 +64,6 @@ buildPythonPackage rec {
$out/bin/trezorctl --version
'';
postFixup = ''
mkdir completions
_TREZORCTL_COMPLETE=source_bash $out/bin/trezorctl > completions/trezorctl || true
_TREZORCTL_COMPLETE=source_zsh $out/bin/trezorctl > completions/_trezorctl || true
_TREZORCTL_COMPLETE=source_fish $out/bin/trezorctl > completions/trezorctl.fish || true
installShellCompletion --bash completions/trezorctl
installShellCompletion --zsh completions/_trezorctl
installShellCompletion --fish completions/trezorctl.fish
'';
meta = with lib; {
description = "Python library for communicating with Trezor Hardware Wallet";
mainProgram = "trezorctl";