8 }: python3.pkgs.buildPythonApplication rec {
9 pname = "mautrix-googlechat";
12 src = fetchFromGitHub {
15 rev = "refs/tags/v${version}";
16 hash = "sha256-a/EWz/aCkBE6XdDpmZcx2Q7/xKNwGCiZUhZc9YIIDhU=";
21 # patch setup.py to generate $out/bin/mautrix-googlechat
22 # https://github.com/mautrix/googlechat/pull/81
23 name = "mautrix-googlechat-entry-point.patch";
24 url = "https://github.com/mautrix/googlechat/pull/81/commits/112fa3d27bc6f89a02321cb80d219de149e00df8.patch";
25 sha256 = "sha256-DsITDNLsIgBIqN6sD5JHaFW0LToxVUTzWc7mE2L09IQ=";
29 baseConfigPath = "share/mautrix-googlechat/example-config.yaml";
31 rm $out/example-config.yaml
32 install -D mautrix_googlechat/example-config.yaml $out/$baseConfigPath
35 passthru.optional-dependencies = with python3.pkgs; {
49 propagatedBuildInputs = with python3.pkgs; [
59 ] ++ lib.optionals enableE2be passthru.optional-dependencies.e2be
60 ++ lib.optionals enableMetrics passthru.optional-dependencies.metrics
61 ++ lib.optionals enableSqlite passthru.optional-dependencies.sqlite;
66 homepage = "https://github.com/mautrix/googlechat";
67 description = "Matrix-Google Chat puppeting bridge";
68 license = licenses.agpl3Plus;
69 platforms = platforms.linux;
70 maintainers = with maintainers; [ arcnmx ];
71 mainProgram = "mautrix-googlechat";