about summary refs log tree commit diff
path: root/pkgs/servers/mautrix-googlechat
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-01-31 14:02:37 +0800
committerNick Cao <nickcao@nichi.co>2023-01-31 14:02:37 +0800
commitf2cd0189ec04db6227d8e5f927b6500f0e538444 (patch)
tree7ea77cd687dc938434acc91947b991e91e185ea3 /pkgs/servers/mautrix-googlechat
parente139718d5f109e24e4ba4fea5120fc7708f8e2ea (diff)
mautrix-googlechat: 0.4.0 -> unstable-2023-01-25
Diffstat (limited to 'pkgs/servers/mautrix-googlechat')
-rw-r--r--pkgs/servers/mautrix-googlechat/default.nix35
1 files changed, 17 insertions, 18 deletions
diff --git a/pkgs/servers/mautrix-googlechat/default.nix b/pkgs/servers/mautrix-googlechat/default.nix
index db1f7c6d1f254..74389663455fb 100644
--- a/pkgs/servers/mautrix-googlechat/default.nix
+++ b/pkgs/servers/mautrix-googlechat/default.nix
@@ -1,17 +1,19 @@
-{ fetchFromGitHub, fetchpatch
+{ fetchFromGitHub
+, fetchpatch
 , lib
 , python3
-, protobuf3_20
-, enableE2be ? true, enableMetrics ? true, enableSqlite ? true
+, enableE2be ? true
+, enableMetrics ? true
+, enableSqlite ? true
 }: python3.pkgs.buildPythonApplication rec {
   pname = "mautrix-googlechat";
-  version = "0.4.0";
+  version = "unstable-2023-01-25";
 
   src = fetchFromGitHub {
     owner = "mautrix";
     repo = "googlechat";
-    rev = "v${version}";
-    sha256 = "sha256-UVWYT0HTOUEkBG0n6KNhCSSO/2PAF1rIvCaw478z+q0=";
+    rev = "e2eb528745466468f059c506c22e500e0cd832aa";
+    sha256 = "sha256-FNlEHzuy89RuFUwZPmVA+4AmpQHGD+18BguGC6qBdBM=";
   };
 
   patches = [
@@ -24,13 +26,6 @@
     })
   ];
 
-  doCheck = false;
-
-  postPatch = ''
-    sed -i requirements.txt \
-      -e 's/asyncpg>=.*/asyncpg/'
-  '';
-
   baseConfigPath = "share/mautrix-googlechat/example-config.yaml";
   postInstall = ''
     rm $out/example-config.yaml
@@ -43,8 +38,12 @@
       pycryptodome
       unpaddedbase64
     ];
-    metrics = [ prometheus-client ];
-    sqlite = [ aiosqlite ];
+    metrics = [
+      prometheus-client
+    ];
+    sqlite = [
+      aiosqlite
+    ];
   };
 
   propagatedBuildInputs = with python3.pkgs; [
@@ -54,14 +53,14 @@
     ruamel-yaml
     CommonMark
     python-magic
-    (protobuf.override {
-      protobuf = protobuf3_20;
-    })
+    protobuf3
     mautrix
   ] ++ lib.optionals enableE2be passthru.optional-dependencies.e2be
   ++ lib.optionals enableMetrics passthru.optional-dependencies.metrics
   ++ lib.optionals enableSqlite passthru.optional-dependencies.sqlite;
 
+  doCheck = false;
+
   meta = with lib; {
     homepage = "https://github.com/mautrix/googlechat";
     description = "A Matrix-Google Chat puppeting bridge";