9 python = python3.override {
11 packageOverrides = self: super: {
12 tulir-telethon = self.telethon.overridePythonAttrs (oldAttrs: rec {
14 pname = "tulir-telethon";
16 inherit pname version;
17 hash = "sha256-FckMHqGaBsqvFbrEnDWqJAQG8j/euY2NooesnxV6Kcc=";
24 python.pkgs.buildPythonPackage rec {
25 pname = "mautrix-telegram";
27 disabled = python.pythonOlder "3.8";
29 src = fetchFromGitHub {
32 rev = "refs/tags/v${version}";
33 hash = "sha256-uR0vhp7ONyjwMKbgM1iObpFRoQzyQzJLbw4i9P58jTs=";
36 format = "setuptools";
38 patches = [ ./0001-Re-add-entrypoint.patch ];
40 propagatedBuildInputs = with python.pkgs; ([
46 (mautrix.override { withOlm = withE2BE; })
66 ] ++ lib.optionals withE2BE [
77 homepage = "https://github.com/mautrix/telegram";
78 description = "Matrix-Telegram hybrid puppeting/relaybot bridge";
79 license = licenses.agpl3Plus;
80 platforms = platforms.linux;
81 maintainers = with maintainers; [ nyanloutre ma27 nickcao ];
82 mainProgram = "mautrix-telegram";