ma pkgs.kalauerbot: use patched matrix-client

This commit is contained in:
makefu 2020-11-16 21:37:51 +01:00
parent c743b9e53c
commit e824baec5e
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,14 @@
diff --git a/matrix_client/client.py b/matrix_client/client.py
index af0e08f..f848c4f 100644
--- a/matrix_client/client.py
+++ b/matrix_client/client.py
@@ -471,7 +471,7 @@ class MatrixClient(object):
self._sync(timeout_ms)
def listen_forever(self, timeout_ms=30000, exception_handler=None,
- bad_sync_timeout=5):
+ bad_sync_timeout=61):
""" Keep listening for events forever.
Args:

View File

@ -8,7 +8,12 @@ rev = "08d98aa";
sha256 = "017hh61smgq4zsxd10brgwmykwgwabgllxjs31xayvs1hnqmkv2v";
};
propagatedBuildInputs = with python3.pkgs;[
(callPackage ./python-matrixbot.nix {})
(callPackage ./python-matrixbot.nix {
matrix-client = (stdenv.lib.overrideDerivation matrix-client (self: {
patches = [ ./badsync.patch ];
}));
})
(stdenv.lib.overrideDerivation googletrans (self: {
patches = [ ./translate.patch ];
}))