ma pkgs.kalauerbot: use patched matrix-client
This commit is contained in:
parent
c743b9e53c
commit
e824baec5e
14
makefu/5pkgs/kalauerbot/badsync.patch
Normal file
14
makefu/5pkgs/kalauerbot/badsync.patch
Normal 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:
|
||||||
|
|
@ -8,7 +8,12 @@ rev = "08d98aa";
|
|||||||
sha256 = "017hh61smgq4zsxd10brgwmykwgwabgllxjs31xayvs1hnqmkv2v";
|
sha256 = "017hh61smgq4zsxd10brgwmykwgwabgllxjs31xayvs1hnqmkv2v";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = with python3.pkgs;[
|
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: {
|
(stdenv.lib.overrideDerivation googletrans (self: {
|
||||||
patches = [ ./translate.patch ];
|
patches = [ ./translate.patch ];
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user