anchor.diff:      inherit pname version;
       sha256 = "0ycmpwjv5xp25993divjhaq5j766zgcy22xx39xfc1pcvldq5g7n";
     };
  +
  +  nativeBuildInputs = [ installShellFiles ];
   
     propagatedBuildInputs = [ typing-extensions protobuf hidapi ecdsa mnemonic requests pyblake2 click construct libusb1 rlp shamir-mnemonic trezor-udev-rules ];
   
  
positive.code: , rlp
  , shamir-mnemonic
  , trezor-udev-rules
  }:
  
  buildPythonPackage rec {
  
negative.code:     runHook postCheck
    '';
  
    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 Bitcoin Hardware Wallet";
      homepage = "https://github.com/trezor/trezor-firmware/tree/master/python";
  