weechat = pkgs.weechat.override {
    configure = { availablePlugins, ... }: {
      plugins = builtins.attrValues (availablePlugins // {
        python = availablePlugins.python.withPackages (ps: with ps; [
          pyopenssl
          typing
          webcolors
          future
          atomicwrites
          pkgs.weechat-matrix.matrix-nio
          pkgs.weechat-matrix.weechat-matrix
          attrs
          Logbook
          pygments
        ]);
      });

      scripts = with pkgs; [
        weechat-matrix.weechat-matrix
      ];
    };
  };